I have a table with a start and stop time and a table with 30 minute segments in each field, like 00:00, 00:30, 01:00, etc.
Using a query I would like the time period between the start and stop time to be shown in the minute segment fields like:
start time 01:45, stop time 03:00
I would like the following result:
00:00=0
00:30=0
01:00=0
01:30=0.50
02:00=1
02:30=1
03:00=0
etc.
I managed to get this to work in Excel using the following formula:
=MAX(0,MIN(D$1,$B2)-MAX(C$1,$A2))*48
where the start time is in A2 and the stop time in B2.
How can I get this to work in an Access query.
I tried to put this in the criteria of each time field:
DMAX(0,min([00:30],[stop time]-MAX([00:00],[start time]))*48,
but receive the message that the function contains the wrong number of arguments.
Any help is very much appreciated.
Bert.