Hi!
I'd like to filter my form, based on a query(called filterhez). I added a command button and I tried to write the code, but the ApplyFilter method doesn't seem to work.
Here is the code:
Dim filt As AllQueries
Set filt = Access.AllQueries("filterhez")
DoCmd.ApplyFilter filt
Please be detailed
THX
I'd like to filter my form, based on a query(called filterhez). I added a command button and I tried to write the code, but the ApplyFilter method doesn't seem to work.
Here is the code:
Dim filt As AllQueries
Set filt = Access.AllQueries("filterhez")
DoCmd.ApplyFilter filt
Please be detailed
THX