A
aspfun
I got an error in ADP file but it is working in MDB file.
The error is pointed at following line. How to fix it?
Set rec = dbs.OpenRecordset(strSQL, dbOpenDynaset)
-------------------------------------------
Dim dbs As DAO.Database
Dim rec As DAO.Recordset
Dim strSQL As String
Dim strQueryName As String
Dim strMySQL As String
strSQL = "select QueryName from tQueryListA"
Set dbs = CurrentDb()
Set rec = dbs.OpenRecordset(strSQL, dbOpenDynaset)
The error is pointed at following line. How to fix it?
Set rec = dbs.OpenRecordset(strSQL, dbOpenDynaset)
-------------------------------------------
Dim dbs As DAO.Database
Dim rec As DAO.Recordset
Dim strSQL As String
Dim strQueryName As String
Dim strMySQL As String
strSQL = "select QueryName from tQueryListA"
Set dbs = CurrentDb()
Set rec = dbs.OpenRecordset(strSQL, dbOpenDynaset)