Command buttons and modules

M

Molly

I am fairly new when it comes to using access. When I attempted to copy over
a series of forms and tables from one database to another the files that i
tried to copy over didn't work and I deleted them. My problem is that after
I deleted these files the command buttons on the files that were already in
the database (and were not linked in anyway with the files i had to delete)
no longer work. when I click on them I get the message "Modules not found."
The Visual Basic debugger showed that the first line of the code was the
problem "Private Sub Command51_Click()" Is it possible that I corrupted the
files or is there a way i can fix it? Thanks
 
V

Van T. Dinh

I think your use of "files" is rather confusing and hence no response to
date. In Access, there is only 1 file that stores all the different object
designs as well as data (2 files if you split the database to Front-End and
Back-End).

I am not sure from your description whether it is the source database or the
destination database you are having problem but it sounds like corruptions
have occured.

The first thing to do is to make a back-up copy of the database if you
haven't already done so.

Try Compact & Repair the database. Also try to Compile the database and see
if any Compilation Error appear.

If you still have problems, try creating a new blank database and then
importing all objects from the existing database to the new database.
 
Top