R
Robin
The previous post/answer by Allen Browne sounds like just what the doctor
ordered for my current situation. An intermitent "Access encountered a
problem ..." cropped up recently during multiple changes to my DB. But it
references access 2002, I am wondering if there are adjustments or anything
additional I should consider as I am using Access 2007, accde FE and accdb
BE, under the runtime environment.
Also, am I correct to assume that both the FE and BE should be subjected to
the same procedure listed below.
Thank you,
Robin
Copied from previous post:
Answer
Subject: Re: MDE problem 11/28/2006 7:49 AM PST
By: Allen Browne In: microsoft.public.access
A decompile will probably fix this but try this sequence as it deals with a
number of possible issues:
1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html
2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact/Repair
3. Close Access. Make a backup copy of the file. Decompile the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
4. Open Access (holding down the Shift key if you have any startup code),
and compact again. Close the database without running any code.
5. Create a new (blank) mdb in Access 2002 format. Before you do this, you
may need to set the Default File Format) under:
Tools | Options Advance.
6. Immediately turn off the Name AutoCorrect options.
7. Import everything from your old database:
File | Get External | Import
8. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html
9. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.
At this point, you should have a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, reference ambiguities are resolved,
and the code syntax is compilable.
ordered for my current situation. An intermitent "Access encountered a
problem ..." cropped up recently during multiple changes to my DB. But it
references access 2002, I am wondering if there are adjustments or anything
additional I should consider as I am using Access 2007, accde FE and accdb
BE, under the runtime environment.
Also, am I correct to assume that both the FE and BE should be subjected to
the same procedure listed below.
Thank you,
Robin
Copied from previous post:
Answer
Subject: Re: MDE problem 11/28/2006 7:49 AM PST
By: Allen Browne In: microsoft.public.access
A decompile will probably fix this but try this sequence as it deals with a
number of possible issues:
1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html
2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact/Repair
3. Close Access. Make a backup copy of the file. Decompile the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
4. Open Access (holding down the Shift key if you have any startup code),
and compact again. Close the database without running any code.
5. Create a new (blank) mdb in Access 2002 format. Before you do this, you
may need to set the Default File Format) under:
Tools | Options Advance.
6. Immediately turn off the Name AutoCorrect options.
7. Import everything from your old database:
File | Get External | Import
8. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html
9. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.
At this point, you should have a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, reference ambiguities are resolved,
and the code syntax is compilable.