Dim appAccess As Access.Application
Dim strDB As String
Const strConPathToSamples = "D:\其它不可丢失的资料\软件技术\db1.mdb"
strDB = strConPathToSamples
Set appAccess = _
CreateObject("Access.Application")
appAccess.OpenCurrentDatabase strDB
DoCmd.Quit acQuitSaveNone