Problem: When the Passthrough update query is defined using QueryDef, it becomes a select query, and I cannot use the Execute Method.
Instance:
The following code is defined as a query called "AddCost"
Expand|Select|Wrap|Line Numbers
- UPDATE tblinitiative SET tblinitiative.Estimate = " & Estimate & ", tblinitiative.FinalCost = " & FinalCost & " WHERE (((tblinitiative.InitID)=" & InitID & "));
Expand|Select|Wrap|Line Numbers
- CreateSPT "Addcost", str, "ODBC;DATABASE=db;DSN=DB;OPTION=0;PWD=health;PORT=0;UID=user"
- Set qdf = db.QueryDefs("Addcost")
- qdf.Execute
Are Update queries considered Select queries? And if so, how can I set it up to use the Execute method as to update a record using passthrough query?
In normal circumstances, not using ODBC, I know I could do it another more simple way, but as I've scoured the web, using a passthrough query and execute methods are the only ways to get around another problem linking MySQL Backend and MS Access Front end.
Help!