Results 1 to 2 of 2
  1. #1
    Kattracks32 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    1

    Using a Lookup form to search results in a Query

    I have a query that I need to pull an employee's attendance records from. I have all the fields that I need and I set up the parameter to search for specific employees based on a form [forms]![fmAttendanceLookup]![Name]. When the form is not open a box pops up and I can enter the name and it returns the results. When I use the combo box which has all the employee names in it and run the query it comes back with no results even though I know there are records associated with that name.

    Since it works when I manually type the name in I am assuming that it is an issue with the combo box on the form and not the query itself.

    I have two tables, one that has the employee info in and a separate one with all the attendance records. The relationship is a one-to-many with the EmployeeID as the foreign key that links the two tables.

    Thanks in advance for any help with this issue


    Kat

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Perhaps the "bound" column of the combo box is not the "Name" column.
    BTW: Name is a reserved word in Access and should not be used as the name of an object.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 3
    Last Post: 09-12-2016, 11:49 AM
  2. Replies: 24
    Last Post: 04-08-2015, 02:59 PM
  3. Search Form Query Results
    By armyofdux in forum Queries
    Replies: 5
    Last Post: 03-20-2015, 12:24 PM
  4. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  5. Search Query not giving all results
    By wrkadri in forum Queries
    Replies: 5
    Last Post: 02-05-2013, 12:37 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