Results 1 to 4 of 4
  1. #1
    podrae is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    4

    report filter using combo (newbie help)

    Hi Guys



    I have a form with a nested report that I want to filter based on four combo box selections + a general word. I have searched this for ages and found heaps of stuff on it so its obviously something that alot of people run into when learning this stuff. I have very limited Access experience but a wee bit of C# from years ago. I am struggling to piece together code and things I have found to apply to my own situation so thought I may be able to pick up what exactly is going on if I get some help with my actual database.

    This is for a car part inventory
    table for year
    table for make
    table for type
    table for general part

    main table that holds actual part and all of the above


    Situation is this.

    I have a form with four combo boxes bound to tables, makecombo, generalcombo, yearcombo and typecombo. I also want to add a text box I can type in to narrow further (i have done this with the query builder LIKE "*" & [part] & "*")
    Under this is a report that is currently showing all data in the "part" table.

    I want to be able to pick a value in each combo box, type something in the text box then click a button which then adds all the values together into a select statement or something which then updates the nested report to show the filtered results.

    If someone could help me with the code I need here and where to place it I would be greatly apprecitive.

    Tony

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    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
    podrae is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    4

    This was a bit confusing still but I managed to get my combo boxes creating a perfect SQL statement by fiddling with the code supplied here http://www.access-programmers.co.uk/...d.php?t=157601

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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

Similar Threads

  1. Replies: 13
    Last Post: 08-08-2013, 04:52 PM
  2. Filter Report by Form using combo boxes
    By TubbzUK in forum Reports
    Replies: 3
    Last Post: 12-11-2012, 01:18 PM
  3. Filter Report by Optional Date Range and Combo Box
    By ARickert in forum SQL Server
    Replies: 3
    Last Post: 10-17-2012, 10:46 AM
  4. Replies: 9
    Last Post: 12-02-2011, 12:51 PM
  5. using unbound combo box to filter report
    By jlclark4 in forum Reports
    Replies: 1
    Last Post: 01-25-2011, 04:12 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