I am using DAO to create a new (temporary) Access database with several tables whenever my program runs. Before creating the mdb, I check to be sure the database does not already exist using the file system object. If the mdb exists, I delete it (I want to absolutely certain I populate an empty database). How can I check to be sure the database that I want to delete is not open? I am checking for the existence of the ldb file, but it seems that there must be a better way.
Jim
Jim