Share via

Applying Filter by Form through Command button

Anonymous
2011-01-07T06:48:41+00:00

Hi, I want to generate filter by form to accept user input from a command button rather than usingsort and filter of Home menu. similarly executing the filter after user input from command button rather than using Home Menu.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2011-01-07T11:02:55+00:00

You can use

RunCommand acCmdFilterByForm

to display form filter, but once you do so, all command buttons are hidden, so you can't use a command button to apply the filter. That can only be done from a toolbar or from the ribbon.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2011-01-07T16:29:55+00:00

    You can create a macro named AutoKeys to assign keyboard shortcuts - see [url=http://office.microsoft.com/en-us/access-help/run-an-access-macro-by-using-a-keyboard-shortcut-HA010239111.aspx]Run an Access macro by using a keyboard shortcut[/url].

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-01-07T16:23:20+00:00

    Hi, I got it. However i do not want to use Main Menu to activate filter by form and to execute query. What all options i have as after activating in runtime i cant apply filter. do we have shortcut keys as in Oracle F7 to enter query and F8 to execute query.******

    Was this answer helpful?

    0 comments No comments