G
Guest
Hi Huys,
I need to close a database if it is open. This code needs to be on a
seperate database. I have an installer database that when prompted closes the
front end database, deletes the file and copies a new file in its place (new
version). The problem is that when I try to delete the file, it will now
allow me if it is still open. I tried the following code:
Set MyDB = OpenDatabase("C:\Inspect.mdb")
MyDB.Execute Exit
MyDB.Close
Set MyDB = Nothing
My code to execute the exit is incorrect, does anyone know how to quit the
other database? Thanks in advance
Neil
I need to close a database if it is open. This code needs to be on a
seperate database. I have an installer database that when prompted closes the
front end database, deletes the file and copies a new file in its place (new
version). The problem is that when I try to delete the file, it will now
allow me if it is still open. I tried the following code:
Set MyDB = OpenDatabase("C:\Inspect.mdb")
MyDB.Execute Exit
MyDB.Close
Set MyDB = Nothing
My code to execute the exit is incorrect, does anyone know how to quit the
other database? Thanks in advance
Neil