ordendelfai
Technical User
I am working on some code to change between my development and my production server with a click of a button. I have many pass through query's that must have the ODBCConnectStr changed.
The problem I am having is referencing the ODBCConnectStr property of my queries in VBA (never had to before).
I am guessing it is something like:
But when I assign a query name (value) to MyQuery then try:
I get the error "Method or Data Member not found".
Thanks for you help ;-)
~Joel
As common courtesy and to help other members who might find your thread helpful in the future, please respond if the advice given resolved your issue.
The problem I am having is referencing the ODBCConnectStr property of my queries in VBA (never had to before).
I am guessing it is something like:
Code:
Dim MyQuery As QueryDef
Code:
MyQuery.ODBCConnectStr
Thanks for you help ;-)
~Joel
As common courtesy and to help other members who might find your thread helpful in the future, please respond if the advice given resolved your issue.