报错内容是:对象变量或with快变量未设置!
调试的时候,错误指向了
cnnConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=*.mdb;Persist Security Info=False"
这句,
我感觉其余都对的/
调试的时候,错误指向了
cnnConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=*.mdb;Persist Security Info=False"
这句,
我感觉其余都对的/
导致这样的错误
Dim cnnConnection As Connection
Set cnnConnection= new Connection
是不是有问题
你试试如下的申明
dim cnnConnection as ADODB.connection
cnnConnection=New adodb.connection