Re: Hours Worked
From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 12/06/04
- Next message: Fred Boer: "Re: Deploy"
- Previous message: Ken Snell [MVP]: "Re: Help!! I'm running around in circles!"
- In reply to: Pete: "Hours Worked"
- Next in thread: Pete: "Re: Hours Worked"
- Reply: Pete: "Re: Hours Worked"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Dec 2004 09:09:36 -0500
In tblHoursWorked, are you using ClockNo and Reason as a composite primary
key, or is there no primary key in that table?
The warning about duplicates suggests that you may have these two keys as a
composite primary key, which means that, even though each can accept
duplicates, there cannot be two records where the values of both fields in
combination are the same in both records (e.g., ClockNo value is 1 and
Reason value is 1 in one record, so no other record can have that same
combination).
What is DateWkd in tblHoursWorked table? I don't see a field that has a name
that seems to correspond with "hours worked" that you say you're entering
into this table?
--
Ken Snell
<MS ACCESS MVP>
"Pete" <pete@nospam.net> wrote in message
news:cp1nte$fi4$1@newsg2.svr.pol.co.uk...
> I wish to keep a track of hours worked by employees, these can be for
> various reasons e.g
>
> Training
> Sickness
> Visits
> Bereavement
> Paternity
>
> I thought a many to many relationship would do, but I am struggling to get
> it to accept duplicate values. Tables I have are:
>
> tblEmployee
> ClockNo (Primary Key)
> Name
> Dept
> Shift
>
> tblHoursWorked
> ClockNo (Foreign Key)
> Reason (Foreign Key)
> DateWkd
> Comments
>
> tblReason
> Reason (Primary Key ) (e.g Training, Sickness etc..)
>
> When I try to assign some hours worked to an employee, If they have
already
> worked some on Training, I get the error about duplicates. Both ClockNo &
> Reason are set to accept Duplicates in tblHoursWorked
>
> Any help would be appreciated
>
> Pete
>
>
- Next message: Fred Boer: "Re: Deploy"
- Previous message: Ken Snell [MVP]: "Re: Help!! I'm running around in circles!"
- In reply to: Pete: "Hours Worked"
- Next in thread: Pete: "Re: Hours Worked"
- Reply: Pete: "Re: Hours Worked"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|