Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access 2003 Form Corruption

4 views
Skip to first unread message

David G.

unread,
Jun 22, 2010, 8:58:15 PM6/22/10
to
I am working on an Access 2003 database. In the last 2 days I've had
Access corrupt 2 forms rendering them unloadable. (I would get the not
enough memory error message.) I had to scrap the one form entirely
since I had not backed up the database since creating the form. (Lots
of saves, but that doesn't help.) Fortunately, I had backed up the
database before doing some heavy edits to the form. I used the export
feature to copy the working form into the current database file.

I set up a VM on my XP machine so I could install the Office 2003
software and not worry about any conflicts with my Office 2007. Are
there any known issues with Microsoft Virtual PC and Access 2003? Are
there other issues I should investigate to prevent this from happening
in the future? The "Compact and Repair" feature in 2003 seems useless.
Are there other methods for fixing a corrupted form?

Thanks for any comments.
THANKS!
David G.

Arvin Meyer

unread,
Jun 22, 2010, 10:28:31 PM6/22/10
to
I am running Office 2003 on VMWare on one machine without problems. Do you
have SP1 and SP2 installed as well?
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access 2010 Solutions", published by Wiley


"David G." <Dwee...@GMX.com> wrote in message
news:bdm2261ieepsd8g0l...@4ax.com...

Tony Toews

unread,
Jun 22, 2010, 10:29:42 PM6/22/10
to
On Tue, 22 Jun 2010 20:58:15 -0400, David G. <Dwee...@GMX.com>
wrote:

I get this occasionally as well.



> I set up a VM on my XP machine so I could install the Office 2003
>software and not worry about any conflicts with my Office 2007. Are
>there any known issues with Microsoft Virtual PC and Access 2003?

No.

>Are
>there other issues I should investigate to prevent this from happening
>in the future?

Not tthat I'm aware of.

>The "Compact and Repair" feature in 2003 seems useless.

In the case of objects other than tables, indexes and relationships
you are correct. To fix the other objects you must either copy and
paste from the database container window or import all the objects
into a new database file.

Corrupt Objects within a Corrupt Microsoft Access MDB
http://www.granite.ab.ca/access/corruption/corruptobjects.htm

The little documented SaveAsText and LoadFromText may help if an
object is corrupted or otherwise behaving weirdly.
At the debug/immediate window type:
Application.SaveAsText acForm,"MyForm","c:\form.txt
You can load the file into a new MDB.
Application.LoadFromText acForm,"MyForm","c:\from.txt"

Sample code at http://www.datastrat.com/Code/DocDatabase.txt for
saving all objects in an MDB.

Tony

Tony Toews

unread,
Jun 23, 2010, 1:20:05 AM6/23/10
to
On Tue, 22 Jun 2010 22:28:31 -0400, "Arvin Meyer" <arv...@invalid.org>
wrote:


>I am running Office 2003 on VMWare on one machine without problems. Do you
>have SP1 and SP2 installed as well?

Good point but Office 2003 is up to SP3.

Tony

David G.

unread,
Jun 23, 2010, 9:43:33 AM6/23/10
to
Thank you for your comments! I might go back to one of the corrupted
files and see if I can extract the corrupted form.

THANKS!
David G.

David G.

unread,
Jun 23, 2010, 9:48:39 AM6/23/10
to
I keep XP up to date. I tried to install Office SP3, but I got a
message saying it was already installed. I know I installed the
updates previously, but I had assumed reinstalling from the original
disc would have taken me back to square one. Perhaps the installation
process does not overwrite any newer version files?

Is there a way to uninstall the updates, or reinstall them?

THANKS!
David G.

Tony Toews

unread,
Jun 23, 2010, 6:38:23 PM6/23/10
to
On Wed, 23 Jun 2010 09:48:39 -0400, David G. <Dwee...@GMX.com>
wrote:

>I keep XP up to date. I tried to install Office SP3, but I got a
>message saying it was already installed. I know I installed the
>updates previously, but I had assumed reinstalling from the original
>disc would have taken me back to square one. Perhaps the installation
>process does not overwrite any newer version files?
>
>Is there a way to uninstall the updates, or reinstall them?

Likely from within the Control Panel >> Add/Remove softeare but
you'll have to click that checkbox to show the patches. Be prepared
to wait a while for it to update the screen.

Tony

David W. Fenton

unread,
Jun 23, 2010, 6:59:42 PM6/23/10
to
David G. <Dwee...@GMX.com> wrote in
news:bdm2261ieepsd8g0l...@4ax.com:

> I am working on an Access 2003 database. In the last 2 days I've
> had Access corrupt 2 forms rendering them unloadable.

Are you practicing good code management?

That is:

1. turn off COMPILE ON DEMAND.

2. use Option Explicit in all modules.

3. specify the parents of all objects used (Me!MyFormControl and not
MyFormControl).

4. compile often (after every few lines of code).

5. decompile on a semi-regular basis (after a few hours of work,
before a release to production).

These kinds of daily practices generally reduce the occurence of
corruption to almost never.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

David W. Fenton

unread,
Jun 23, 2010, 7:00:39 PM6/23/10
to
David G. <Dwee...@GMX.com> wrote in
news:is34269mms3t792mr...@4ax.com:

> I know I installed the
> updates previously, but I had assumed reinstalling from the
> original disc would have taken me back to square one. Perhaps the
> installation process does not overwrite any newer version files

No, it does not. That was one of the main points in creating the
MSI, to manage this kind of thing. To revert to the earlier version,
you have to uninstall and reinstall from the source disks.

Tony Toews

unread,
Jun 23, 2010, 8:10:51 PM6/23/10
to
On 23 Jun 2010 22:59:42 GMT, "David W. Fenton"

<XXXu...@dfenton.com.invalid> wrote:

>3. specify the parents of all objects used (Me!MyFormControl and not
>MyFormControl).

I use Me. Haven't yet had a problem with that.

Tony

David W. Fenton

unread,
Jun 24, 2010, 3:24:32 PM6/24/10
to
Tony Toews <tto...@telusplanet.net> wrote in
news:9j85261naohj5f3bt...@4ax.com:

I see a lot of code that doesn't specify parent objects, though. It
requires VBA to do more work, as well as causing the *programmer* to
do more work ("is MyFormControl a variable or is it a control on
this form?"). I think it's a good idea to not depend on implicit
behaviors any more than necessary, particular when being explicit
makes for better code.

Tony Toews

unread,
Jun 24, 2010, 10:27:23 PM6/24/10
to
On 24 Jun 2010 19:24:32 GMT, "David W. Fenton"

<XXXu...@dfenton.com.invalid> wrote:

>> I use Me. Haven't yet had a problem with that.
>
>I see a lot of code that doesn't specify parent objects, though. It
>requires VBA to do more work, as well as causing the *programmer* to
>do more work ("is MyFormControl a variable or is it a control on
>this form?"). I think it's a good idea to not depend on implicit
>behaviors any more than necessary, particular when being explicit
>makes for better code.

Agreed. And it saves time typing as Intellisense takes over after
the first few characters.

Tony

0 new messages