Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close database

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
Are there any other methods of closing the database besides the command Set dbs = Nothing ? I need to reinforce the closing of the databas ein order to avoid posible problems

Dim wsp As DAO.Workspace
Set wsp = DBEngine.Workspaces(0)
Dim strPassword As String
strPassword = "secret"
Dim dbs As DAO.Database
Set dbs = wsp.OpenDatabase("C:\BE\Store\BE.mdb", False, False, ";PWD=" & strPassword)
LinkAllTables (BEPath)
Set dbs = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top