I'm still working on my employee/item/project database. The whole idea behind the project is this: store information on employees (Personal info, emergency contact, job titles, pay rates, current certifications, equipment/items "issued" or "checked out" to). Then once the data is input via a basic form, be able to search/edit/add information.
I'm struggling to understand how to relate my 4 tables and allow data entry on a single form or form/subforms(maybe tabbed form would be cool).
Current iteration:
Tables: (All Primary Keys are AutoNumber)
ProfileTable
[PK]ProfileID, EmployeeID, EmergencyID, JobTypeID, ProfileCreated[Default Value: Now()]
JobTypeTable
[PK]JobTypeID, JobType (List of trades)
ExternalEmployees
[PK]EmployeeID, FirstName, LastName, PhoneNumber1, PhoneNumber2, Address, City, State, ZipCode, SSN, Birthdate
EmergencyContacts
[PK]EmergencyID, EmployeeID, FirstNameE, LastNameE, AddressE, PhoneNumber1E, PhoneNumber2E
Relationships:
How do I relate this data? I'm completely lost every time I try to figure it out. I think I click and drag from ProfileTable each of the other field's primary keys. For example: from ExternalEmployees.EmployeeID to ExternalEmployees.EmployeeID.
How do I add new records to all these tables at once AND include their IDs in my ProfileTable?
Previous iteration: (Functional but not integrated with the rest of the database)
I believe in this iteration I've created a "joining table" in the IssuedLog with items and employees. Trying to replicate but with profile instead.
Tables: ExternalEmployees, IssuedLog, ExpendableEquipmentWithCost
Relationships:
[ExternalEmployees].EmployeeID -> One-to-Many -> [IssuedLog].EmployeeID
[ExpendableEquipmentWithCost].ItemID -> One-to-Many -> [IssuedLog].ItemID
Forms:
AddExternalEmployee: Record Source is "External Employees" - Fields: First/Last name, 2 phone numbers, address and SSN and a "Add New Record" button.
IssueEquipment: Record Source is "ExternalEmployees" with fields for personal information.
Subform: "AddToIssueLogForm" - Fields: DateIssued, EquipmentType (combobox dropdwon). and "Add New Record" button.
Sub"table": "IssuedLogSubTable" - Based on Query of IssuedLog selects which equipment and how much it cost.