Results 1 to 2 of 2
  1. #1
    PoorCadaver is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Oct 2011
    Posts
    68

    Search by dropdown

    Hi!



    This is my second db I've done in Access so I'm not so good at it yet. The thing is that I did something (probably easy) in my first db that I cannot re-do in my second. I have tried and tried but I'm stuck now.

    This is simplified what I have and what I want to do...

    Two tables, tblList and tblPlace.
    TblList contains a list of books in our library with columns like ID, Name, Author and Place.
    TblPlace contains a list of rooms with the columns ID and Room.

    What I want is to, in a form, chose room from a drop down, hit a search button and view the results in a sub form. Quite simple and I have done this but now I can't do this again...

    I use the design view in tblList to create the column Place using the wizard. Here I chose that I want to get the values from another table. I chose tblPlace and so on.
    In the form I create a drop down (qPlace) using the wizard, chose to get the values from tblPlace and finish.
    When I click the search button I run a query (qrySearch) and in the arguments I write

    Like [Forms]![frmRegister].[qPlace] & "*"

    I think this is what I did when I created my last db but this won't work. What happens is that when I chose a room from the list, nothing appears. The search function works because I can type in names and authors filter that way.

    I must have missed something but I can't see what it is.

    I'm greatful for any help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    You can't follow example in other database? Maybe this example will help http://datapigtechnologies.com/flash...tomfilter.html
    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. Query with dropdown box
    By Alsail77 in forum Queries
    Replies: 2
    Last Post: 08-28-2012, 01:57 PM
  2. Search Query within Dropdown Question
    By Scyclone in forum Programming
    Replies: 12
    Last Post: 10-11-2011, 10:53 AM
  3. Replies: 9
    Last Post: 05-23-2011, 06:12 PM
  4. Dropdown menus
    By Mclaren in forum Forms
    Replies: 2
    Last Post: 08-17-2010, 12:30 PM
  5. Dropdown - need help please
    By sullyman in forum Access
    Replies: 8
    Last Post: 10-26-2009, 07:48 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