Re: Splitting a record in two
From: Bill Taylor (wtaylor51537_at_earthlink.net)
Date: 04/29/04
- Next message: Rachel: "Record Ranking"
- Previous message: chris: "DoCmd.RunSQL error Help"
- In reply to: Alan Nicoll: "Splitting a record in two"
- Next in thread: Alan Nicoll: "Re: Splitting a record in two"
- Reply: Alan Nicoll: "Re: Splitting a record in two"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 21:37:01 GMT
You could have two fields in your "Pay" table one for regular hrs and one
for OT. A query could be set to calculate ttl hrs. and an IIF statement in
the source fields for the regular and OT fields:
Regular Hours Field IIF (sum(MyTable.Time) > 40, 40, sum(MyTable.Time))
OT Hours Field IIF (sum(myTable.Time) > 40, sum(myTable.Time) -
40 )
HTH
"Alan Nicoll" <anonymous@discussions.microsoft.com> wrote in message
news:614d01c42e2b$18eb4600$a401280a@phx.gbl...
> I am working on a database that includes overtime
> calculations. Each record represents a shift worked by an
> employee. The problem is that when overtime must be paid,
> it often must be paid for only part of a shift.
>
> For example, if an employee works 35 hours in his first
> four shifts, and in his fifth shift he works 8 hours,
> that's a total of 43 hours for the week. For various
> reasons it is desirable to create a record, i.e., split
> that fifth shift into two records, one to be paid at
> straight time and one to be paid at overtime.
>
> Can someone tell me how to do this without getting into
> Visual Basic?
>
> Thanks.
>
> Alan
- Next message: Rachel: "Record Ranking"
- Previous message: chris: "DoCmd.RunSQL error Help"
- In reply to: Alan Nicoll: "Splitting a record in two"
- Next in thread: Alan Nicoll: "Re: Splitting a record in two"
- Reply: Alan Nicoll: "Re: Splitting a record in two"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|