If you get the error "ITEM IS NOT FOUND IN THIS COLLECTION", does this not mean that the fields that you are trying to edit are NOT in the recordset??
What are the names of your fields? Just field1, field2, etc??
Mike
Jim,
But lets say this database is on the network available to 10 users. The method that I posted to have it compact and startup automatically would be the right way to go I assume?
I suppose you could have the Startup database automatically run instead of having the user click the button ...
The way that I learnt was by opening up Access and just trying different things.
Try little things like displaying message boxes, printing to the debug window, closing forms, etc .. the help files in access are not that bad.
And of course the best way to learn is to grab other people's code...
Hi all
For awhile now I've been looking over the ways to compact a database in Access '97 and I finally found a solution that I like.
-- Create a new database called "startup.mdb".
-- Create a form with one button with the following code behind it:
Private Sub cmdCOMPACT_Click()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.