Results 1 to 7 of 7
  1. #1
    CKelly55 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    4

    Looking up Names in a Query


    I have created a Database for my Camera Club, I am now trying to make a query to Search a list of Competitions and return the entries against the Photographers name. I have done this but have to type in the Photographers name, what I want to do is to be able to Look Up a list of Names for the Photographers. The table I have for the Photographers is - "Photographers" and the field I need to look up is "Name". Can anybody help me please.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You have some naming convention issues.
    tblPhotographers
    Photographer

    Name is a reserved word in Access.
    All of that said, you can either use a parameter in your query; Example: [Name of Photographer Please]
    Or simple add Only the required fields in your query, i.e. "Photographer" and sort as you wish.
    What data type is Competitions? Enter your criteria under this field for filtered results.

    HTH

  3. #3
    CKelly55 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    4
    Thanks, I think I understand. Does this mean I should change my Field Title in my Photographers Table to something like 'Photographer'. The Photographers table is just a list with Names,addresses, telephone numbers and email addresses on it in the form of a table.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

  5. #5
    CKelly55 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    4
    Quote Originally Posted by burrina View Post
    The problem I am having is with the syntax. I have built a query that returns the results I want but using the Search Command. This opens a dialogue box and I have to type in the name of the Photographer. I really want to simplify things by having a drop down list of Photographers when I start my query. I have tried DLookup and Select but can't get the syntax right.
    tblPhotographers
    Photographer

    The Competitions Table is just a list of Competition Titles, Scores and Format.
    tblCompetitions
    Photographer.Title.Competition.Format.Score.

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Your not going to be able to do this with a query based dialogue box. Why not simply use a combo box on a form?

  7. #7
    CKelly55 is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    4
    Quote Originally Posted by burrina View Post
    Your not going to be able to do this with a query based dialogue box. Why not simply use a combo box on a form?
    Ok, thanks for the information. Not sure how to use a combo box, I'll have to do some reading up. This Forum has been really helpful.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-16-2013, 01:36 AM
  2. To query out city names
    By lizzywu in forum Queries
    Replies: 2
    Last Post: 11-26-2012, 11:59 AM
  3. How to look up column names using a query
    By debmil02 in forum Queries
    Replies: 6
    Last Post: 04-06-2012, 05:04 PM
  4. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  5. Replies: 5
    Last Post: 04-24-2011, 03:14 AM

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