jazminecat
Programmer
Hi, so in the interests of not repeating past mistakes, I'm trying to create my new db normalised from the start, and avoid using lookup fields in my table. But...since I've always done it that way (my bad) I'm having a brain freeze. I have 3 tables: tblEmployee, tlkpEmpEligibility, and tblIdentificationTypes
tblEmployee contains all employee information, including two fields to hold the two types of identification an employee must show to be employed. Eligibility1 and Eligibility2
tblIdentificationTypes contains a list of the types of identification that are accepted:
ID - autonumber primary key
IdentificationType - text containing list of types
the recordset for this is currently
1 Drivers License
2 Social Security #
3 Passport
etc.
tlkpEmpEligibility is a lookup table between the two with three fields
ID = autonumbered primary key
EmpID - the EmployeeID from the EmployeeTable
IdentificationTypeID - the ID from tblIdentificationTypes
my problem, each employee will have two records in the lookup table...I have created both one to many relationships, with the lookup table on the many side of both relationships.
and now my brain is stuck.
I need two fields - one for eligibility1 and one for eligibility2 in my employee table. But how do I code them without using a lookup field.
I have a form with all of the information from the employee table - how do I lookup the information from the tblIdentificationTypes table at the form level so that I can use it in a dropdown list when creating a new record? Do I need to create a query to be the source for those two fields then?
I know I am making this more complicated than it needs to be. And I know I know how to do this but I am drawing a complete blank. Any help is really appreciated.
tblEmployee contains all employee information, including two fields to hold the two types of identification an employee must show to be employed. Eligibility1 and Eligibility2
tblIdentificationTypes contains a list of the types of identification that are accepted:
ID - autonumber primary key
IdentificationType - text containing list of types
the recordset for this is currently
1 Drivers License
2 Social Security #
3 Passport
etc.
tlkpEmpEligibility is a lookup table between the two with three fields
ID = autonumbered primary key
EmpID - the EmployeeID from the EmployeeTable
IdentificationTypeID - the ID from tblIdentificationTypes
my problem, each employee will have two records in the lookup table...I have created both one to many relationships, with the lookup table on the many side of both relationships.
and now my brain is stuck.
I need two fields - one for eligibility1 and one for eligibility2 in my employee table. But how do I code them without using a lookup field.
I have a form with all of the information from the employee table - how do I lookup the information from the tblIdentificationTypes table at the form level so that I can use it in a dropdown list when creating a new record? Do I need to create a query to be the source for those two fields then?
I know I am making this more complicated than it needs to be. And I know I know how to do this but I am drawing a complete blank. Any help is really appreciated.