Results 1 to 2 of 2
  1. #1
    10 Gauge's Avatar
    10 Gauge is offline Getting the hang of it...
    Windows XP Access 2007
    Join Date
    Feb 2011
    Location
    Fredericksburg, VA
    Posts
    202

    Question Filter button w/ pop-up dialog?

    I am curious if there is a way to create a form button that when clicked will prompt the user to enter data to filter the form results by?

    I have a purchase order database and want to be able to filter records by a particular repair order # so that it only shows all PO's associated with the given RO.



    Thanks in advance for any help if this is possible.

  2. #2
    10 Gauge's Avatar
    10 Gauge is offline Getting the hang of it...
    Windows 7 64bit Access 2007
    Join Date
    Feb 2011
    Location
    Fredericksburg, VA
    Posts
    202
    Alright figuring it out through some messing around....

    Here's what I have so far:

    Code:
    If Me.FilterOn Then
        Me.FilterOn = False
    Else
        Me.Filter = "RO_Number = [RO Number]"
        Me.FilterOn = True
    End If
    The only problem is that once I click the button again to unfilter, and then click the button once more to search for another RO Number it uses the previously entered RO Number and does not prompt the user to enter a new number?

    I assume there is one short line of code I can add after the "Me.FilterOn = False" expression that will reset the filter to null?

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

Similar Threads

  1. Filter on one or more fields using a dialog box
    By jparker1954 in forum Reports
    Replies: 21
    Last Post: 07-15-2011, 03:39 PM
  2. Replies: 0
    Last Post: 02-15-2011, 01:43 PM
  3. Replies: 2
    Last Post: 01-11-2011, 02:00 PM
  4. Button hiding when filter on
    By rstonehouse in forum Forms
    Replies: 2
    Last Post: 08-25-2010, 06:24 AM
  5. Filter button
    By tomeem in forum Access
    Replies: 0
    Last Post: 08-28-2009, 12:50 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