Results 1 to 3 of 3
  1. #1
    BrianFawcett is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2010
    Posts
    7

    SQL Query on Access Form


    I am trying to write a SQL qurey on a access form but am struggling with the terminology.

    The query should take what the user selects from three drop down lists (combo boxes) and filter the results to show only those records which match.

    The combo boxes are cbCatergory, cbSupplier, andcbPartNumber with the field in each being Category, Supplier and Part

    I cannot figure out what my WHERE clauses need to be written as

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Sounds like a cascading combo type of thing:

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I dont think he's referring to making the combos based off eachother. I think he just wants to use the value of the combo boxes in his WHERE clause.

    WHERE table.field = Forms!myForm!cbCategory AND table.field = Forms!myForm!cbSupplier AND etc.....

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

Similar Threads

  1. Query to only show a value in a form from a query
    By cwwaicw311 in forum Queries
    Replies: 28
    Last Post: 03-27-2010, 02:31 AM
  2. Sql server query to MS access query
    By blazixinfo@yahoo.com in forum Queries
    Replies: 0
    Last Post: 07-07-2009, 08:12 AM
  3. Updating SQL server form Access form?
    By slash75 in forum Forms
    Replies: 1
    Last Post: 09-06-2008, 02:39 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