how to generate a time axis with a quey

J

john

Hi all,

I want to make a query that will display all the minutes between two hours,

i.e.

The initial data are 2 different hours, let say 07:50 and 08:01

the final result should be
07:50
07:51
07:52
07:53
07:54
07:55
07:56
07:57
07:58
07:59
08:00
08:01

I want to use that as a time axis for a dynamic graph

regards,
Pierre
 
G

Guest

Create a table with a field named CountNUM containing number from 0 (zero) to
your anticipated highest spread.

SELECT DateAdd("n",[CountNUM],CVDate([Enter beginning time])) AS Minutes
FROM CountNumber
WHERE (((DateAdd("n",[CountNUM],CVDate([Enter beginning time]))) Between
CVDate([Enter beginning time]) And CVDate([Enter ending time])));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with SQL 3
Lost in time! 5
Difference in time 7
TIME 1
Formatting time 2
Time lapsed between two records with same value 6
who can help please with table query ? 1
Combining 2 kinds of graphs [how?] 2

Top