Dim sConnect As String
    Dim sSQL As String
    Dim dfwConn As ADODB.Connection
    Dim RS As Recordset
    
ADO的例子
    sConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\YourDB.mdb;"
    sSQL = "* FROM YourTable where ……"
    Set dfwConn = New Connection
    dfwConn.Open sConnect
    
    Set RS = New Recordset
    RS.CursorLocation = adUseServer
    RS.Open sSQL, dfwConn, adOpenDynamic, adLockReadOnly, 1