I want to change the SQL of a split form in Ms Access
Dim db As Database
Dim query As QueryDef
Set db = CurrentDb
Set query = db.QueryDefs("MyQuery")
Me.query = query.SQL
Me.Requery
Now the operation Me.query = query.SQL works, I have checked it but it simply does not refresh the results.
I think that you mean to set the recordsource:
As an aside, I would be cautious about using object names for variable names,
queryis not a good name for a variable.