Results 1 to 4 of 4
  1. #1
    rlsublime is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2012
    Posts
    58

    Create ComboBox Filter

    I have a form with a combo box that I am trying to add a filter to. i would like to filter the data by type and date (To and From) and then export those results to excel. i know there is a way to do it with combo box filters and requery methods but am not sure of how exactly.

    The first is a combo list box called request type which contains let's say A,B,C,all. I also have a (date from) and (date to) input box which I am also trying to use as the second filter to filter the dates entered by the user and the request type. I have created a macro button to export the report query to excel but I am trying to add the appropriate filters to the query before exporting to excel.

    Also, when (all) is selected, I do not want the filter to apply to (request type).

    Thanks


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Review the links referenced in this thread https://www.accessforums.net/showthr...erate-a-Report!!
    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.

  3. #3
    rlsublime is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2012
    Posts
    58
    Thanks. If I have a combo box called Request_type in a form, would I got to data and edit the row source field? What would I need to enter there for me to filter the Request_type field in Query1? I created the "Requery" After Update event but I am having problems with the "row source field" in the properties data tab.

    Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Don't understand the question: "would I got to data and edit the row source field?"

    Re-check you effort against the tutorials.
    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. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Filter by comboBox value
    By blueraincoat in forum Forms
    Replies: 6
    Last Post: 03-16-2011, 09:49 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 PM

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