M
mikejs2000
Hi,
I am writting a database that is to be used as an access system to a night
club.
All is ok accept that there is a requirement to have different entry fee at
different times of the night e.g.
19:00 to 21:00 = £4.00 - 21:00 to 23:00 = £6.00 - 21:00 to 03:00 = £10.00
Ok all goes well with comparing the present time with the periods above e.g.
If Presenttime < 21:00 then...
the problem comes when It gets to 23:59:59, ok explination, the last period
runs from the end of the first day to the begining of the second day, for the
less than statment I have provided two periods the first is 21:00 to 23:59:59
and the next is the next logical day 00:00 to 03:00. all works ok problem
when an action happens between 23:59:59 and 00:00 I get an error. Ok I could
possibly get around this by capturing the error but hey, I may be looking at
this completely the wrong way and someone out there has a much simpler
solution.
By the way the periods are held in a table as they need to be associated to
a specific day e.g. Monday period 1. 2 etc, the system first gets the
present day name then querys out the periods for that day and this is what is
used above.
Well, as usual thanks in advance for all your help, and sorry this is so long.
Mike J. Soames
I am writting a database that is to be used as an access system to a night
club.
All is ok accept that there is a requirement to have different entry fee at
different times of the night e.g.
19:00 to 21:00 = £4.00 - 21:00 to 23:00 = £6.00 - 21:00 to 03:00 = £10.00
Ok all goes well with comparing the present time with the periods above e.g.
If Presenttime < 21:00 then...
the problem comes when It gets to 23:59:59, ok explination, the last period
runs from the end of the first day to the begining of the second day, for the
less than statment I have provided two periods the first is 21:00 to 23:59:59
and the next is the next logical day 00:00 to 03:00. all works ok problem
when an action happens between 23:59:59 and 00:00 I get an error. Ok I could
possibly get around this by capturing the error but hey, I may be looking at
this completely the wrong way and someone out there has a much simpler
solution.
By the way the periods are held in a table as they need to be associated to
a specific day e.g. Monday period 1. 2 etc, the system first gets the
present day name then querys out the periods for that day and this is what is
used above.
Well, as usual thanks in advance for all your help, and sorry this is so long.
Mike J. Soames