Alain said:
Hi Dirk,
just found the problem, there was some old code on a unused form
that it is not being used anymore. It seem that I have some more
clean up to do, but the stange thing is when I was compiling before
this error was not hapenning at all, so I am starting to think that
may be the db is getting corrupted.
BTY how do I decompile a db
1. With the database closed -- no users in it at all -- and (ideally)
Access not running, make a backup copy.
2. On the task bar, click Start -> Run...
3. Enter this (adapted to match your database path and name) in the Run
dialog box and click OK:
msaccess.exe /decompile "C:\My Documents\YourDBName.mdb"
You may need to include the full path to msaccess.exe, but I don't find
that to be the case when I try it. Depending on your Access version,
you may not get any sign that anything in particular happened. Your
database will probably open in Access.
4. Compact and Repair your database.
5. Open the database again, press Alt+F11 to switch to the VB Editor,
and click Debug -> Compile (your project). If any errors appear, fix
them and recompile.
6. Close the VB Editor. Compact & Repair again.