R
rogge
I am trying to move queries in an Access database, MDB file, to an Access
Data Project, ADP.
I can get the information needed from the MDB, the query name and its SQL
string, easily. I am having difficulty creating a new View in the ADP using
VBA. When I run this code, an Object Not Set error occurs in the ADP at Set
qryTemp, this error does not happen in a MDB.
Set dbs = OpenDatabase(strDB)
For Each qry In dbs.QueryDefs
Set qryTmp = CurrentDb.CreateQueryDef(qry.Name, qry.SQL)
Next qry
Data Project, ADP.
I can get the information needed from the MDB, the query name and its SQL
string, easily. I am having difficulty creating a new View in the ADP using
VBA. When I run this code, an Object Not Set error occurs in the ADP at Set
qryTemp, this error does not happen in a MDB.
Set dbs = OpenDatabase(strDB)
For Each qry In dbs.QueryDefs
Set qryTmp = CurrentDb.CreateQueryDef(qry.Name, qry.SQL)
Next qry