Dim MyWs As Workspace Dim MyDB As Database Dim WordTab As Recordset |
Set MyWs = DBEngine.CreateWorkspace″″ ″Admin″ ″″ dbUseJet Set MyDB = MyWs.OpenDatabase数据库名称 False False Set WordTab = MyDB.OpenRecordset″表名″ dbOpenDynaset |
Dim LocCnn1 As ADODB.Connection Dim LocRst1 As ADODB.Recordset |
Set LocCnn1 = New ADODB.Connection LocCnn1.Open ″Provider=Microsoft.Jet.OLEDB.4.0User ID=Admin″ & _ ″Data Source=″ & App.Path & ″\数据库名称.mdb″& _ ″Mode=Share Deny NoneExtended Properties=''Persist Security Info=False″ & _ ″Jet OLEDBDatabase Password='asp561rbc'″ |
Set LocRst1 = New ADODB.Recordset LocRst1.CursorType = adOpenKeyset LocRst1.LockType = adLockOptimistic LocRst1.Open ″SELECT FROM 表名″ LocCnn1adCmdText |
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |