I have done
Dim qd as querydef
set qd = Querydefs("MyQuery")
qd.sql = "..."
In debug qd.sql has been updated but the physical MyQuery still contains the old sql.
How to update this physical query ?
The source code given by microsoft here http://msdn.microsoft.com/en-us/library/bb177500.aspx
doesn't work either.