Follow the steps in the 2nd last post to create a new database and
import all the *other* forms/reports except the known bad one.
You can then try SaveAsText to export the bad one to a text field, and
LoadFromText to import it into the new database.
At worst, you have one report to rebuild.
You were right, it was a library file. I searched the registery on the
old machine and found couple .dll files that I needed to register.
But now I have a report that crashes the database when I try to open
it. Any ideas there?
thanks
Yes it does.
If you create a new database, and import the objects, it may stop at
the point when it reaches the corrupted form.
If not, you can probably identify the corrupted form by exporting
your forms to text files with the undocumented SaveAsText, e.g.:
SaveAsText acForm, "Form1", "C:\MyFolder\Form1.txt"
Loop through CurrentProject.AllForms, and see which one fails.
(If you have code behind your reports, it could be one of them. Or it
could be one of the stand-alone modules, but that is less likely.)
does it matter that I still get the error, when trying to decompile
1. Open the database while holding down the Shift key so that any
startup code does not run.
2. Go to:
Office Button | Access Options | Trust Center | Trust Center
Settings
and click the Add button. Add the folder where this database
resides to the trusted locations.
3. Go to:
Office Button | Access Options | Current Database
and uncheck the boxes under Name AutoCorrect
4. Compact the database:
Office Button | Manage | Compact/Repair
5. 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"
6. Open Access (holding down the Shift key if you have any startup
code), and compact again.
7. Open a code window.
Choose References on the tools menu.
Which libraries are used? (List in your rely.)
Are you certain none of them has the word "MISSING" beside them?
8. Still in the code window, choose Compile on the Debug menu.
Fix any problems, and repeat until it compiles okay.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
I checked the library references on the old machine and I have the
same libraries on the new machine, but I'm still having the same
error.
Any other suggestions?
thanks
In that case, is it probably a problem with library references.
See:
Solving Problems with Library References
at:
http://allenbrowne.com/ser-38.html
No, it's running windowx xp sp2
Bart, is the new computer running Windows Vista?
If so, see:
Errors using multiple versions of Access under Vista
at:
http://allenbrowne.com/bug-17.html
We have a database that was used in Access 2003. We upgraded
our computer and software and now we have Access 2007. When
trying to run this database we get the error "Error in opening
application: 429 Error creating CSetupInfo". Any idea what
this error could mean? What other info would you need to know
from me?