There is a definite Access bug here - although this message may appear legitimatly there are times when the compiler looses it totally and get it's knickers in a twist...
A usual symptom of this happening is the message appearing and no code being highlighted to indicate where the error is....
I've noticed this appears to happen most oft when peforming class module name changes...
The only way I've found to solve the problem is to create a new (blank) database and import all the objects from the offending database and reset all startup options and references accordingly...
And hey presto! - no compile errors...
Of course this is a real pain in the butt to do this as frequently as I have to...
There is also another related problem pertaining to code intensive projects and the compiler - you may notice that the .mdb file grows in size much more (by megabytes at a time) than you might expect irrespective of
using the compact & repair function
Again I suspect this is due to the compiler loosing it and dumping old compiled chunks of code in the .mdb file without cleaning them out...
These are probably artifacts of the compiler attempting to peform partial compilation during development - probably something Microsoft thinks is pretty clever - and maybe it would be if there were no bugs in it - but
what would be cleverer would be to have a 'compile from scratch' menu option. Would save a lot of time & headaches...
Again the only solution I have found to this is create a new database and import all objects from the offending one.
I would be interested to hear from anyone who knows of a more expedient solution.
Access Version: 2003
A usual symptom of this happening is the message appearing and no code being highlighted to indicate where the error is....
I've noticed this appears to happen most oft when peforming class module name changes...
The only way I've found to solve the problem is to create a new (blank) database and import all the objects from the offending database and reset all startup options and references accordingly...
And hey presto! - no compile errors...
Of course this is a real pain in the butt to do this as frequently as I have to...
There is also another related problem pertaining to code intensive projects and the compiler - you may notice that the .mdb file grows in size much more (by megabytes at a time) than you might expect irrespective of
using the compact & repair function
Again I suspect this is due to the compiler loosing it and dumping old compiled chunks of code in the .mdb file without cleaning them out...
These are probably artifacts of the compiler attempting to peform partial compilation during development - probably something Microsoft thinks is pretty clever - and maybe it would be if there were no bugs in it - but
what would be cleverer would be to have a 'compile from scratch' menu option. Would save a lot of time & headaches...
Again the only solution I have found to this is create a new database and import all objects from the offending one.
I would be interested to hear from anyone who knows of a more expedient solution.
Access Version: 2003