Thanks Wayne does not matter either way, if you have the following, the result are the same a vanishing database after the dbFile statements, before the programs end. Interesting enough it only displays MsgBox contents when dbfFile <> Nil, it seems to jump over if you have dbFile.Exists. Will try it out of debug mode.
If dbFile.Exists Then
db.DatabaseFile = dbFile
MsgBox(“Database file exists”)
End If
or
If dbFile.Exists And dbFile <> Nil Then
db.DatabaseFile = dbFile
MsgBox(“Database file exists”)
End If
Thank you Tim. Although I was placing the file once the folder was created initially, each time I ran it, the folder must be recreating itself, even though I replace the file. Works with your code.