Turn off filter and sort on loading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to turn off filter and sort on loading a form (i.e. just use the sort
in the underlying query). What code do I use to disable filter and sort?
 
hi Sam,

Sam said:
I want to turn off filter and sort on loading a form (i.e. just use the sort
in the underlying query). What code do I use to disable filter and sort?
Ues the On Load event of your form:

Me.FilterOn = False
Me.OrderByOn = False

mfG
--> stefan <--
 
You don't need any code. Just set the forms filter and filteron properties
in design view. If you later want to filter while the form is open, that is
okay.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top