I'm trying to update the SQL of my query via vba.
I'm trying to do that so I can have one query for a PIVOTCHART that I can just change the where clause on viewing. There doesn't seem to be a way to change the where clause when doingI figured I could just have a base query, grab the sql and add the where clause. I just can't seem to figure out how to take the new sql and save it to a different query.Code:docmd.openquery.
Thanks