wingpeople
Programmer
I'm struggling with using an ADP and ADO vs. the familiar (to me) MDB and DAO. What would be the equivalent in an ADP to this MDB code that fetches the .SQL property from a QueryDef called "qryABC"? (in the ADP, it might be a View or user defined function).
---
I've tried using the same code (with DAO.Database, DAO.Querydef, etc), but it bombs out when I try to get at the Querydef in the current database.
I'm lost. Help!
Code:
Dim MyDB as Database
Dim MyQD as Querydef
Dim MySQL as String
Set MyDB = CurrentDB
Set MyQD = MyDB.Querydefs("qryABC")
MySQL = MyQD.SQL
I've tried using the same code (with DAO.Database, DAO.Querydef, etc), but it bombs out when I try to get at the Querydef in the current database.
I'm lost. Help!