Login | |
|
 |
use vbscript locally, how to access mdb? - 10/20/2004 10:12:45 PM
|
|
 |
|
| |
xtian
Posts: 1
Score: 0
Joined: 10/20/2004
From:
Status: offline
|
Hi, I need to do some changes on an access-MDB file (to prepare it for further use) and thought of using vbscript for this. Unfortunately, there`s as good as none information about how to use vbscript locally, NOT using any server. At the moment, I have the following code: dim conn dim rs dim query set conn= createobject("ADODB.Connection") set rs= createobject("ADODB.Recordset") conn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\test.mdb" query = "select * from tab" rs.Open query, conn, adOpenKeyset, adLockOptimistic, adCmdText (...) But keep getting following error: ADODB.Recordset error '800a0bb9' The application is using arguments that are of the wrong type, or are out of acceptable range, or are in conflict with one another. Can anyone help me? Thanx!
|
|
| |
|
|
|
|
|