MajP
You've got your good things, and you've got mine.
- Local time
- Yesterday, 23:29
- Joined
- May 21, 2018
- Messages
- 9,994
Create a new junction table with nice naming convention. I would have fields
EmployeeID_FK
LocationID_FK
ApptTypeID_FK
Preference ' text field
In the appointment table rename it to tblAppointmentTypes. Change the PK name to AppointTypeID_PK.
Now build a query. Drop your old junction table and the appointment table in the query, without any joins. Pick the emp id, location id from the old junction table and the appointmentType ID from the appointment type table. See if you now have a record showing all appointment types per person per location.
Now in the query design go up to the top and select "append" (plus sign). You want to append these records to your new junction table. Just match the fields up.
EmployeeID_FK
LocationID_FK
ApptTypeID_FK
Preference ' text field
In the appointment table rename it to tblAppointmentTypes. Change the PK name to AppointTypeID_PK.
Now build a query. Drop your old junction table and the appointment table in the query, without any joins. Pick the emp id, location id from the old junction table and the appointmentType ID from the appointment type table. See if you now have a record showing all appointment types per person per location.
Now in the query design go up to the top and select "append" (plus sign). You want to append these records to your new junction table. Just match the fields up.