Results 1 to 5 of 5
  1. #1
    DanielHurtubise is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    5

    List in a query

    Sorry if that has been asked before (im sure it did) but i couldnt find any thread.

    I have a simple query. The first field is MediaType and has 2 values (DVD or Bluray) taken from the Media Type table
    Of course the query gives me a list of all the DVD and Bluray the DB has. What im trying to achieve is to run the query based on a list (DVD or Bluray).
    What i was able to achieve (by using [DVD or Bluray] in the criterai) is a dialog that lets you input manually DVD or Bluray. Of course if you mispelled you get nothing.


    I'd like to be able to select the possible values (DVD or bluray) from a list to avoid that and i dont care much for thedialog.

    Any help is much appreciated

    FYI, its a small test im doing before getting query from a Revit Database, im fairly new to Access

  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,521
    The only way to get a list is to use a form. You'd have the user choose from a combo box, and the query criteria would be:

    Forms!FormName.ComboName
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DanielHurtubise is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    5
    Thanks a lot for the info, and it's good enough for me
    Here's where i got so far.


    The form still returns only 1 value (of course there's multiple). How do i "link the ComboBoc value to the Query?

    Thanks a million for your time and help.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm assuming you want to choose at the top and have the values appear below? You'd base the form on your query, and requery the form in the after update event of the combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    DanielHurtubise is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2011
    Posts
    5
    That's EXACTLY what im after

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

Similar Threads

  1. Selection List for Query
    By Juan4412 in forum Queries
    Replies: 13
    Last Post: 01-09-2011, 05:59 PM
  2. Dropdown list in a query
    By asherbear in forum Queries
    Replies: 6
    Last Post: 05-31-2010, 06:38 PM
  3. Pulling a Query from a List Box
    By Nosaj08 in forum Queries
    Replies: 1
    Last Post: 11-09-2009, 10:27 AM
  4. Problems with a query in a list box
    By admaldo in forum Forms
    Replies: 1
    Last Post: 04-05-2006, 05:28 PM
  5. Query List
    By sanjshah in forum Queries
    Replies: 3
    Last Post: 03-25-2006, 08:01 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