我有一个与访问数据库 (.mdb) 连接的 vbs。在我的 Windows XP 中完美运行,但在我的 Windows 7 x64 中,我的驱动程序有问题......
这是我拥有的代码:
Set MyConn = CreateObject("ADODB.Connection")
Set MyConn = CreateObject("ADODB.Connection")
MdbFilePath = "c:\mis documentos\fusion\fusion.mdb"
'The error point to the next line
MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
'querys'
SQL_versionlocal = "SELECT versionlocal.version FROM versionlocal;"
SQL_version = "SELECT version.version FROM version;"
Set RSL = MyConn.Execute(SQL_versionlocal)
' Wscript.echo "Versión local " & RSL("version")
versionlocal = RSL("version")
这是问题:
[Microsoft] [ODBC Driver Manager] Can not find the data source name and no default driver specified.
任何提示或帮助将不胜感激,如果您需要更多信息,请告诉我,我将编辑帖子。