Have you checked your OPTION EXPLICIT setting?
YES, and All the other Settings
-Decompile: really helps, but the succes is not very High
- Import all into new one from old
- SaveAsText/LoadAsText(MDB-TXT-MDB)
- Acces 2003 reinstall and Last update from WEB
- Ac Help-Detect and Repair, Restore defaults Settings
- Over 1000 Access crashes send to Microsoft in last 2 years
i am Fighting with this ~2 years
--------------------------------------------------------------------------
All the History about ONE CODE LINE !!!
Dim cSQL as String
cSQL = "A" & "B"
-----------------------------
Result SOMETIMES(Random process there ) While running code cSQL = "A"
Result Immediate/Debug Window ***ALLWAYS OK***,cSQL = "AB"
---------
My Opinion Compiler is *** Sometimes *** Wrong

Compile on Demand = OFF (If ON, permanent crash)
I have Large Modules , some over 20 000 lines, But this happens also in small Example DB....
I have some MDE-versions of my DB, they are running dailly (15 hours)...OK,
but before run i MUST it CHECK , for CRAZY ERRORS/VBA STRING BUG...

---------
Keywords: Compiler Wrong/Crazy Error Access/ vba string bug
---------
Example DB AC2002 (ZIP 1,2 MB), an Extraction from Original DB
http://www.dbforums.com/microsoft-ac...xample-db.html
Next week i try to create Example DB for Ac2003
---------
Links to this Problem:
http://sites.google.com/site/pacalaba/