I have an application that I want to test with both populated tables and empty tables.
I have created two .mdb’s accordingly. I have created a public module with a sub procedure called SetDB where I was hoping I just ‘comment’ out the db to suit.
The current db is populated.
Public Sub SetDB()
'Set dbs = CurrentDb
Set dbs = DBEngine.Workspaces(0).OpenDatabase("C:\PathName\Empty.mdb"
End Sub
When run, the populated version appears to be selected. How can I set it so that the unpopulated data is used?
I have created two .mdb’s accordingly. I have created a public module with a sub procedure called SetDB where I was hoping I just ‘comment’ out the db to suit.
The current db is populated.
Public Sub SetDB()
'Set dbs = CurrentDb
Set dbs = DBEngine.Workspaces(0).OpenDatabase("C:\PathName\Empty.mdb"
End Sub
When run, the populated version appears to be selected. How can I set it so that the unpopulated data is used?