Hi,
I have a button on a form that brings up a 'Filter by Form' query form.
The issue I have with this is that the form holds the paramaters of the previous query that was run in the form even once the form has been closed.
I have found the 'Clear Grid' function on the Edit menu but can't find a way of of getting the form to automatically use this command when it opens.
The Docmd.DoMenuItem does not seem to have an option for the 'Clear Grid' command.
Does anyone know of a method I can use to get the 'Clear Grid' command to run, or any other suggestions for clearing the previous query paramaters.
TIA
fbicfc
I have a button on a form that brings up a 'Filter by Form' query form.
The issue I have with this is that the form holds the paramaters of the previous query that was run in the form even once the form has been closed.
I have found the 'Clear Grid' function on the Edit menu but can't find a way of of getting the form to automatically use this command when it opens.
The Docmd.DoMenuItem does not seem to have an option for the 'Clear Grid' command.
Does anyone know of a method I can use to get the 'Clear Grid' command to run, or any other suggestions for clearing the previous query paramaters.
TIA
fbicfc