I have some code that updates the sql in an existing pass-thru query, my problem is when I attempt to run the query it prompts me for ODBC parameters. Any help would be appreciated.
Dim db As DAO.Database
Dim qdf As DAO.Querydef
Dim strSQL as String
Set db = CurrentDB
Set qdf = db.QueryDefs("myquery")
strSQL = qdf.SQL
strSQL = "SELECT....."
qdf.SQL = strSQL
My pass-thru properties for ODBC Connect Str are
ODBC; SERVERNAME=myserver; DSN=connection; UserID=myid; PW=cheese;
Thanks again.
Dim db As DAO.Database
Dim qdf As DAO.Querydef
Dim strSQL as String
Set db = CurrentDB
Set qdf = db.QueryDefs("myquery")
strSQL = qdf.SQL
strSQL = "SELECT....."
qdf.SQL = strSQL
My pass-thru properties for ODBC Connect Str are
ODBC; SERVERNAME=myserver; DSN=connection; UserID=myid; PW=cheese;
Thanks again.