Saved Query Modification

ctr1085

Registered User.
Local time
Today, 14:01
Joined
Jul 7, 2006
Messages
26
Does anyone know how to manipulate a saved query? I want to change the select statement with code so that my pivot table will use the new records. Any information would be appreciated.
 
Currentdb.Querydefs("Queryname").SQL will give you your current sql of that query and you can change that SQL as well....

Currentdb.Querydefs("Queryname").SQL = "Select ... from .... where"
 
Thanks for the info.
 

Users who are viewing this thread

Back
Top Bottom