B
box2003
I created a database in .mdb format and want to distribute locally in .mde
format. Part of my code below checks for either the .mde or .mdb format and
opens the database accordingly. Is this a correct method or is there a
better way. The purpose is to allow me to test and develop this application
in .mdb format and then create the .mde format and still have the
application run in either formats.
If Dir("C:\Customer Info\customer.MDB") <> "" Then
Set dbsCustomer = OpenDatabase("C:\Program Files\Customer
Info\Customer.mde")
else
Set dbsCustomer = OpenDatabase("C:\Program Files\Customer
Info\Customer.mdb")
End If
format. Part of my code below checks for either the .mde or .mdb format and
opens the database accordingly. Is this a correct method or is there a
better way. The purpose is to allow me to test and develop this application
in .mdb format and then create the .mde format and still have the
application run in either formats.
If Dir("C:\Customer Info\customer.MDB") <> "" Then
Set dbsCustomer = OpenDatabase("C:\Program Files\Customer
Info\Customer.mde")
else
Set dbsCustomer = OpenDatabase("C:\Program Files\Customer
Info\Customer.mdb")
End If