Report : Latest Result (2 Viewers)

eyeseven2014

New member
Local time
Today, 10:14
Joined
Apr 3, 2014
Messages
8
Hi Guys!

I have an attendance database and I connect the time attendance machine db to my access db, what i am trying to do is to generate a report that shows the time in and time out for specific date. the type of attendance db is date/time.

Please see the attached screenshot db from attendance machine.

an also some time there is duplicate entry, I need to get the first and the last entry only for specific date.

I hope you can help me.

Thank you guys!
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    17 KB · Views: 54

plog

Banishment Pending
Local time
Today, 12:14
Joined
May 11, 2011
Messages
11,695
This SQL will do what you want:

Code:
SELECT DateValue([CHECKTIME]) AS CheckDate, Min(TimeValue([CHECKTIME])) AS FirstTime, Max(TimeValue([CHECKTIME])) AS LastTime
FROM YourTableNameHere
GROUP BY DateValue([CHECKTIME]);
 

eyeseven2014

New member
Local time
Today, 10:14
Joined
Apr 3, 2014
Messages
8
Hi Plog! Thank your help.

I am really new in access, but where should i put this sql statement?
 

plog

Banishment Pending
Local time
Today, 12:14
Joined
May 11, 2011
Messages
11,695
Create a new query, don't add any tables to it, then in the upper left hand corner of Access click on the SQL view and paste it there, then run it.
 

eyeseven2014

New member
Local time
Today, 10:14
Joined
Apr 3, 2014
Messages
8
Create a new query, don't add any tables to it, then in the upper left hand corner of Access click on the SQL view and paste it there, then run it.

Thanks Plog! It helps a lot!

anyway, one more problem here, if the employee did not signout, the max time will be the same as first time.

Thanks again!
 

Users who are viewing this thread

Top Bottom