Link to home
Start Free TrialLog in
Avatar of Stayer
Stayer

asked on

Filters do not reset in FilterByForm mode

Hi Experts,

I have a problem that causes me a headace :p

I have a form which I have attached a command button to. When command button is clicked the form is set to FilterByForm (or actually I re - open the same form and go to FilterByForm). When I go into FilterByForm I want the FilterByForm to reset and display no values (only headings). However, this is not the case.

This is the code I use:
¨
Private Sub .....
DoCmd.OpenForm "Personal Information", acNormal, "", "", acNormal
DoCmd.Maximize
Me.Filter = ""
Me.FilterOn = False
DoCmd.RunCommand acCmdFilterByForm

End Sub

Please suggest me how to solve this?

Best regards,

KO
Avatar of Mike Eghtebas
Mike Eghtebas
Flag of United States of America image

'Me.Filter = ""  <-- this line is not necessary
Me.FilterOn = False
 
reading more...
ASKER CERTIFIED SOLUTION
Avatar of Stayer
Stayer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial