D
Doug Bell
Hi,
I am a bit puzzled. I need to programatically compact a database so that an
Autonumber field is reset.
I am getting an error stating that the database is opened exclusively.
It is open but I don't understand why.
The front end (Access) has linked tables but at the time where compacting is
required, all bound forms are closed. The controlling form is unbound and
closes the other forms releasing the database. As the controlling form
opens, I used DAO to open the database and then a recordset and populate the
controls on the form. Then I set the recordset to nothing (Set rs = Nothing)
and then the database (Set db=Nothing) but it is not releasing the database.
Closing the form does release the database.
Any ideas?
I am a bit puzzled. I need to programatically compact a database so that an
Autonumber field is reset.
I am getting an error stating that the database is opened exclusively.
It is open but I don't understand why.
The front end (Access) has linked tables but at the time where compacting is
required, all bound forms are closed. The controlling form is unbound and
closes the other forms releasing the database. As the controlling form
opens, I used DAO to open the database and then a recordset and populate the
controls on the form. Then I set the recordset to nothing (Set rs = Nothing)
and then the database (Set db=Nothing) but it is not releasing the database.
Closing the form does release the database.
Any ideas?