Question : Runtime error 2424 strikes in error

A few months ago I took over development of an Access 97/SQL database.  The Access front-end is notable for the extreme number of form, report and query objects it contains.
 
Recently a problem occured in which VBA would, at run-time, fail to recognise certain form controls, bringing up the following error:

"Run-time error 2424 The expression you entered has a field, control or property name that can't find"

The 'choice' of 'victim' seemed fairly arbitary but once a control suffered this problem it would consistently fail to be found by VBA.

I assumed at first that the mdb contained an excess of objects and ran a project to strip out the dead-wood.  This seemed to stabilise things for a while.

Unfortunately the problem is back and I'm out of options.  Has anyone dealt with this issue before?

Any advice massively appreciated...

Answer : Runtime error 2424 strikes in error

I've also exp this from time to time without any logic reasons. Espesially on one of my bigger projects..

I found my answer on MSKB, I don't have the Q id here but it was realated to command bars and menu and did only happen when my MDB file had a long filename?  

solution:

I imported the whole **** into a new database. did a DECOMPILE and then did a "compile all modules", repair/ compact etc..

NB the new database has a filename that do not exeeds the 7+3 convention.
(BTW: all my project from that day have 7+3 convention...)

:-)

Hope this helps..



perove
Random Solutions  
 
programming4us programming4us