Filter a text box with command buttons

R

Roger Withnell

How do I invoke "Filter by Form", "Apply Filter" and "Remove Filter" on a
specific text box, using command buttons invoking subs from the form itself,
rather than using the icons in the Form View taskbar?
 
A

Allen Browne

You can shift to Filter By Form with:
RunCommand acCmdFilterByForm

However, it's a one-way street. None of the command buttons--in fact, none
of the events--work in Filter By Form, so you cannot get a command button to
take you back to Form view again.

The Toobar buttons are therefore the easiest solution.
 

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

Top