By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

Hours and numbers

P: n/a
ACCESS 97 : A tables with events that occur at a certain time, the
date is not important.

I would like a query that shows me the number of events that occur
between 00:00 and 01:00, between 01:00 and 02:00 and so on.

I made one query like : between #00:00# and #01:00# and that works.
But do i have to make that query 24 times for each hour or is there an
other solution?
Thanks Anyone, Anywhere, Anyhow, Anytime, Anyway
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter D wrote:
ACCESS 97 : A tables with events that occur at a certain time, the
date is not important.

I would like a query that shows me the number of events that occur
between 00:00 and 01:00, between 01:00 and 02:00 and so on.

I made one query like : between #00:00# and #01:00# and that works.
But do i have to make that query 24 times for each hour or is there an
other solution?
Thanks Anyone, Anywhere, Anyhow, Anytime, Anyway


Add a calculation to your query: format(yourtimefield, "h") and group on
that. If you just want the number of events you can count them in the
same (totals query) run.

--
Bas Cost Budde
http://www.heuveltop.nl/BasCB

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.