Link to home
Create AccountLog in
Avatar of developingprogrammer
developingprogrammer

asked on

access refering to deleted code module

hey guys, my database is not working. when i press alt f11, access is trying to refer to the code module of form GenericForm_Test but it's already deleted.

how do i delete this reference as well? thanks!
SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of developingprogrammer
developingprogrammer

ASKER

yup tried it all but can't work. in the end i copied all the objects from my database to another one. oh! i forgot to upload the database!! so sorry!!
DMS-Cerebro---SSB-Recon.mdb
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
hrmm i was testing out some code, using the docmd copyobject and also the transferdatabase method to duplicate my form - i ran them in subsequent lines to see if it would auto replace the old form but i think that's where the problem happened. replaced one but didn't handle the reference  to the access class code modules properly.

hrmm mbizup i think the copyobject method requires us to do a further step of saving the form. i experienced it a few times. but the transferdatabase puts the object there already in the database and don't need to save
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
my post explains why my database probably got corrupted