Q
querykitty
I have a datasheet form which opens from a Macro. In the Macro I set a
filter. I would like the user to be able to filter on the datasheet but only
based on my original filter criteria. Currently what is happening is if they
click the "remove filter" button on the tool bar then it shows all records in
the table and not just the ones I originally displayed for them. I've been
trying to use the OnApplyFilter event from the form's property box, but don't
seem to be doing something correctly. I was trying to say:
If me.filteron = false Then ' user is removing the filter using the filter
button
me.Status = "Rev" ' my original criteriea
End If
filter. I would like the user to be able to filter on the datasheet but only
based on my original filter criteria. Currently what is happening is if they
click the "remove filter" button on the tool bar then it shows all records in
the table and not just the ones I originally displayed for them. I've been
trying to use the OnApplyFilter event from the form's property box, but don't
seem to be doing something correctly. I was trying to say:
If me.filteron = false Then ' user is removing the filter using the filter
button
me.Status = "Rev" ' my original criteriea
End If