If a compact/repair (Tools | Database Utilites) doesn't work, and a
decompile (command line switch) doesn't work, the next step would be to
create a new (blank) database and import all the objects.
Make sure the new database is in Access 2002 format: you will not be able to
generate an MDE from A2000 format.
Before importing your objects into the new database, turn off the Name
AutoCorrect boxes under Tools | Options | General.
After importing, open a code window.
Remove any references you don't need. If you are not sure which ones you
need, see:
http://allenbrowne.com/ser-38.html
Then verify that the database compiles correctly. (From a code window: Debug
| Compile). We saw one last week where the compile error showed up only
after the spurious references were removed.
You should now be able to generate the MDE.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"RWC" <he*****************************@shaw.ca> wrote in message
news:AelIb.869588$pl3.851508@pd7tw3no...
Hello,
I'm having a problem that I'm having a lot of trouble with. I'm running
Access XP, with all the updates, including service pack 2. I'm on a
Windows XP machine. I have a database which I'm trying to make into an MDE, and
for every module I have, I get a Microsoft Visual Basic error "Unexpected
Error" (40230). I've tried decompiling, but that doesn't seem to work. Any
ideas would be greatly appreciated. If you are replying to this post, please
remove the caps and underscores from my email address.