How do I arrange my data column?

janue

Registered User.
Local time
Today, 11:32
Joined
Jun 21, 2007
Messages
14
hi, I have a table that looks like this:

untitled2.jpg


And I wan to query my data that looks like this so that I can display the start time and the end time of each distinct date and in every user:


untitled-1.jpg



How can I do lidat? I appreciate anyone who is able to help me, and this is an access database
 
Try this Totals Query, replacing with the correct table name:-

SELECT [UserName], DateValue([TableName].[Date_Clocked]) AS [Date_Clocked],
Min(TimeValue([TableName].[Date_Clocked])) AS [StartTime],
Max(TimeValue([TableName].[Date_Clocked])) AS [EndTime]
FROM [TableName]
GROUP BY [UserName], DateValue([Date_Clocked])

.
 
thank you so much! Just exactly what I need! I slip off the Group By keywords, and im not pretty good with using SQL
 

Users who are viewing this thread

Back
Top Bottom