I have a user that is receiving the subject error when he opens a module and
then closes his database (it compacts upon closing). If he doesn't open a
module, and then closes the database, it's fine. Any suggestions as to what
would be causing this?
Sounds like that module is corrupted.
Make a copy of the database and try the following steps on the copy.
1) Turn off the option to compile on save or demand
2) Open the module and save/export it as a text file (not a bas if you
have that option).
3) Delete the module.
4) Open a different module and 'Compile All Modules'
5) Compact and repair - deal with any errors hat it encounters.
6) Open the database again and create a new module (same type as the
deleted one)
7) Open the text file and copy/paste the code that was exported into
the new module.
8) If you can afford to give the module a different name, I would,
otherwise give it the old name.
9) Save module, Compile All Modules
10) Retry the steps that caused the error message in the first place.
See if these steps work.