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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Me.FilterOn = False
reading more...