How is the db set up? Are there separate scanners for IN and OUT populating
different fields?

Signature
***************************
If the message was helpful to you, click Yes next to Was this post helpful
to you?
If the post answers your question, click Yes next to Did this post answer
the question?
> I have a database of names of people and when that person checks in for a
> service their name is scanned in and the date and time is automatically
[quoted text clipped - 10 lines]
> I want to find each "jennifer" for unique dates and subtract the in from the
> out and get the total time in the building
jenn - 07 Aug 2006 20:47 GMT
the fields are
name
service
and when you press ENTER after selecting the service the date and time is
added to the record... so when I look in the table I have Name, Service,
Date, Time
> How is the db set up? Are there separate scanners for IN and OUT populating
> different fields?
[quoted text clipped - 13 lines]
> > I want to find each "jennifer" for unique dates and subtract the in from the
> > out and get the total time in the building
Assumption:
There is always a matching pair of in and out dates and times
Select A.Person, Sum( DateDiff("n",
(SELECT Max(ActionDate + ActionTime)
FROM YourTable as Tmp
WHERE InOut = "IN" AND
Tmp.Person = A.Person AND
Tmp.ActionDate + Tmp.ActionTime <= A.ActionDate + A.ActionTime),
A.ActionDate + A.ActionTime)) as Elapsed
FROM YourTable As A
WHERE A.InOut = "Out"
GROUP BY A.Person, A.ActionDate
>I have a database of names of people and when that person checks in for a
> service their name is scanned in and the date and time is automatically
[quoted text clipped - 12 lines]
> the
> out and get the total time in the building