one user, multiple records

kivenage

New member
Local time
Today, 04:13
Joined
Aug 4, 2002
Messages
8
hi all,

here's my prob...

one person can have more than one job. so how do i reflect that in the datasheet?

i have

staff_id job
1234 job1
job2

can this be done without having a duplicate staff_id?

thanks
 
You have a One to Many relationship between Staff and Jobs, you need the relevant Tables and Form/subform structures to reflect this
 
When you describe this problem and then use "Datasheet" you are revealing an Excel mindset, perhaps.

What you have described is a classic three-table situation, one table for the person and another for the job, plus a linking table that has one entry for each job each person holds.

The HeldJob table has the person ID and the Job ID (and if the situation is simple enough, nothing else.)

Now, if each job is unique, you could GET BY with two tables, putting the person's ID in the JOB table. But if the same job can be held by two people at the same time, then you need the third table. Like, suppose you had job slots for TWO mechanics with the same exact job descriptions. You could have two mechanics at the same time. In this case, the third table becomes absolutely mandatory.
 

Users who are viewing this thread

Back
Top Bottom