Hours and numbers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter D

    Hours and numbers

    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
  • Bas Cost Budde

    #2
    Re: Hours and numbers

    Peter D wrote:
    [color=blue]
    > 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[/color]

    Add a calculation to your query: format(yourtime field, "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


    Comment

    Working...