M
Marin
Hi all,
I am getting this run-time error when I try to execute SQL
statement from VB code in Access 2000. Here is my code"
Dim sCqlStr As String
Dim myDb As DAO.Database
Dim myRs As DAO.Recordset
Set myDb = CurrentDb
cSqlStr = "SELECT Unit FROM q_NotImp2Imp;"
Set myRs = myDb.OpenRecordset(cSqlStr)
This is where it failed.
I can run this query ("Select Unit From q_NotImp2Imp") in
Access SQL query window and it works just fine.
Please help!
Regards, Marin
I am getting this run-time error when I try to execute SQL
statement from VB code in Access 2000. Here is my code"
Dim sCqlStr As String
Dim myDb As DAO.Database
Dim myRs As DAO.Recordset
Set myDb = CurrentDb
cSqlStr = "SELECT Unit FROM q_NotImp2Imp;"
Set myRs = myDb.OpenRecordset(cSqlStr)
This is where it failed.
I can run this query ("Select Unit From q_NotImp2Imp") in
Access SQL query window and it works just fine.
Please help!
Regards, Marin