Hi all,
while trying execute this program from VB6 code, I got the above error message. Any idea how I can work around the error code or work around my coding?
Dim rs_oriTable As Recordset
Dim rs_table As Recordset
Dim sql_ori As String
Set db = DBEngine.Workspaces .OpenDatabase(App.Path & "/incoming.mdb", False, False, ";pwd=happy")
sql_ori = "Select * from lasttrans"
Set rs_oriTable = db.OpenRecordset(sql_ori)
while trying execute this program from VB6 code, I got the above error message. Any idea how I can work around the error code or work around my coding?
Dim rs_oriTable As Recordset
Dim rs_table As Recordset
Dim sql_ori As String
Set db = DBEngine.Workspaces .OpenDatabase(App.Path & "/incoming.mdb", False, False, ";pwd=happy")
sql_ori = "Select * from lasttrans"
Set rs_oriTable = db.OpenRecordset(sql_ori)