Results 1 to 2 of 2
  1. #1
    mveda2004 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    2

    Creating Lookup Forms From Field

    Hello Everyone,

    I am pretty new to access so step by step instructions would be appreciated. Here's what I am trying to do:



    Goal: I need to have a form that has a drop down menu selection of Team Leaders. Once a Team Leader is selected, the employees related to that Team Leader should show up in another list / combo box and users can select that employee. When Team Leader and employee are selected and users hit the submit button, employee stats should populate.

    Here are the tables I have in this database:

    tblEmployees: pK: ID (auto number), EmpNo, FName, LName, FullName
    tblTL: pK: TLID (auto number) , TL
    tblFunction: pK: FID (auto number), Function (Department)
    tblRelated: pK: ID (auto number), EmpNo, TLID, FID
    tblCodes: pK: CodeID(auto), Codes, ( These are different types of absences an employee can have. ex: ovrper, late, vac, sick,... there are about 15 of them)
    tblLeave: pK: ID(auto), EmpNo, LeaveAmount, LeaveDate


    I have created a master query which brings all the information from these different tables together and that works fine. From here now I need to know how to create the form I mentioned above.

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    What you are describing can be accomplished by Cascading Combo boxes.
    see these free video tutorials:
    http://www.datapigtechnologies.com/f...combobox1.html
    http://www.datapigtechnologies.com/f...combobox2.html

    Instead of tblCodes, you might consider tblLeaveCodes or tblLeaveTypes

    In tblLeave I think you will want a fk for CodeId (I would call it LeaveTypeId, but it's your database).

    It's refreshing to NOT see spaces in field names!!!

    I don't think you need lookup forms as such, some combo boxes (controls) would seem to fit your needs.

    Good luck with your project.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  2. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 PM
  3. Entering data in forms with lookup tables
    By gretsch in forum Forms
    Replies: 1
    Last Post: 11-16-2010, 11:44 AM
  4. Replies: 6
    Last Post: 08-27-2010, 07:06 PM
  5. Creating professional looking forms.
    By Rameez in forum Forms
    Replies: 6
    Last Post: 06-19-2009, 03:56 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