Results 1 to 2 of 2
  1. #1
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63

    Custom button click to Built-in pop-up filter

    Hello, I have managed to click on a custom button to bring up the built-in pop-up filter, however, you need to
    set focus on (place your cursor in) the field in the record set of the report that
    you want to filter before clicking the button with the following "on click" code:

    Private Sub FINANCIAL_PRD_Click()
    Screen.PreviousControl.SetFocus
    DoCmd.RunCommand acCmdFilterMenu
    End Sub

    I would like to be able to just click a button without having to place my cursor in a


    field of a record set to get this pop-up filter. I would also like to specify the
    information I am getting perhaps with a query such as "SELECT column_name(s)
    FROM table_name"


    Here is an picture of what I am trying to do

    http://www.printandpixel.com/access_filter2.jpg

    Any help would be greatly appreciated.
    Linda
    Attached Thumbnails Attached Thumbnails access_filter2.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Filter subform on button Click
    By atom in forum Forms
    Replies: 2
    Last Post: 04-18-2012, 09:43 AM
  2. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  3. Trying to click a button in vba
    By boywonder in forum Programming
    Replies: 8
    Last Post: 05-02-2011, 04:34 AM
  4. +1 on button click
    By 10 Gauge in forum Forms
    Replies: 4
    Last Post: 02-14-2011, 06:51 AM
  5. Increment a value on button click
    By michaeljohnh in forum Programming
    Replies: 9
    Last Post: 08-25-2010, 10:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums