Results 1 to 4 of 4
  1. #1
    danoldenkamp is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    3

    Pulling a lookup table in the criteria for a query request

    Hello I'm new the forum and fairly new to Access,

    I am trying to create a Query that will look for a particular support ticket based on the employee's name.



    I want a dialog input box to pop up when running this query with a drop down of the employees.

    I have a table called tblSupportTickets with a lookup table field called: "Reported by" that pulls the employee list from a table called : tblEmployees field : "Employees"


    I am assuming the way to do this is to add criteria to pull the lookup table off "Reported by" but I don't know the syntax to add to the criteria field in the query design:

    [frmSupportTickets]![Reported by]

    Any help would be greatly appreciated.

  2. #2
    Jester0001 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Location
    Indiana
    Posts
    69
    I want a dialog input box to pop up when running this query with a drop down of the employees.
    You would have to create a form to Pop Up when another control event is triggered.

    I have a table called tblSupportTickets with a lookup table field called: "Reported by" that pulls the employee list from a table called : tblEmployees field : "Employees"
    I'd suggest not using a lookup field on a table. This will explain why:
    http://access.mvps.org/access/lookupfields.htm

    but I don't know the syntax to add to the criteria field in the query design:
    I think you are asking how to set a parameter for the query. Read this:
    http://office.microsoft.com/en-us/ac...001117077.aspx

    But, the parameter query won't have a drop-down combo box that is populated with names from the employee list. For that, you would have to do what I said above: Create a new form with a combo box control, and the Pop Up property enabled.

  3. #3
    danoldenkamp is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    3
    Thanks for your input.

    I went to :

    http://office.microsoft.com/en-us/ac...010256398.aspx

    and made a form with a drop down and linked the query request

    [Forms]![frmviewbyemplyee].[employeeselect]

    I assume it isn't working because the employeeselect is a lookup field.

    I am not experienced with Access. How would I link that employee name field without a lookup field?
    Is there a preferred alternative?

  4. #4
    danoldenkamp is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    3
    Best practice would dictate using a primary key to similiar data fields to link relationships together.

    I guess I was just looking for an easy solution with the data I already had for a dropdown menu to add that data to the form.

    ie: a supportticket form where I can select the employee from a dropdown list that is updated by the employee table. It seems ideal for a lookup table, but not if I want to use that field. There has to be another way to have this funcionality. I guess that is a question for a different thread.

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

Similar Threads

  1. update query using a lookup table
    By slimjen in forum Queries
    Replies: 2
    Last Post: 04-27-2012, 03:46 PM
  2. Multiple criteria lookup
    By rchtan in forum Queries
    Replies: 4
    Last Post: 01-18-2012, 12:21 AM
  3. Query to lookup relative field from table selection
    By shabbaranks in forum Queries
    Replies: 5
    Last Post: 12-20-2011, 11:12 AM
  4. Lookup name in a query on a non-joined table
    By karmacable in forum Queries
    Replies: 7
    Last Post: 09-21-2011, 09:01 AM
  5. Date Lookup in Query for Junction Table
    By Phasma in forum Access
    Replies: 2
    Last Post: 01-21-2011, 03:36 PM

Tags for this Thread

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