Trying to auto apply form filter upon loading

dcavaiani

Registered User.
Local time
Today, 13:42
Joined
May 26, 2014
Messages
385
Private Sub Form_Load()
Forms(0).ServerFilterByForm = True
End Sub

This 2002 code is producing an error ?
 
I have added a button onto my main database dashboard to open a search form in "Filter by Form" mode. I used the macro builder to set it up. It appears to be working very well. I am not able to add some buttons onto the form and have them run the filter process, but the "Toggle Filters" button on the Home ribbon does the job.

Here's my macro:
 

Attachments

  • Filter by Form macro.JPG
    Filter by Form macro.JPG
    20.3 KB · Views: 122

Users who are viewing this thread

Back
Top Bottom