Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group by Date that is a timeStamp

Status
Not open for further replies.

mlocurci

MIS
Oct 17, 2001
210
US
I want to have a GroupBy query but the format of the date in the table is a timestamp. How do I correctly perform a GroupBy?
 
Do you mean a SQL Server timestamp or do you mean its an Access DateTime field. In either case why is it a problem?
 
Its an access DateTime field. When a do the groupBy it groups by date and time and gives a count of 1 for each item.
 
Group by just the date

1/1/05 5
1/2/05 10
1/3/05 12

Ignore the time.
 
If you want to group by day:
GROUP BY Int([your DateTime field])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top