After Midnite Problem

D

DS

I have Menus that I want to come up a certain times of the day. The
problem is I can't seem to make the thing work when a Menu goes past
midnite into the next day. Is there any solutins out there that can be
implemented.
I have this in the table...

MenuID
StartDay
StartTime
EndDay
EndTime

Any direction is appreciated...Thanks
DS
 
J

Jeff Boyce

Have you considered using a form's Timer event to:
1. check to see what time it is, and
2. if it is after midnight, set the Menu (I can't tell if you mean a
form with a menu or a menu bar).

Regards

Jeff Boyce
<Office/Access MVP>
 
J

John Vinson

I have Menus that I want to come up a certain times of the day. The
problem is I can't seem to make the thing work when a Menu goes past
midnite into the next day. Is there any solutins out there that can be
implemented.
I have this in the table...

MenuID
StartDay
StartTime
EndDay
EndTime

Any direction is appreciated...Thanks
DS

Access Date/Time values hold both dates and times in the same field;
as you have seen, programming gets more complicated when you separate
them. I'd suggest just two fields - StartTime (e.g. #11/29/2005
11:30pm#) and EndTime (e.g. #11/30/2005 2:15am#).

John W. Vinson[MVP]
 
D

DS

Jeff said:
Have you considered using a form's Timer event to:
1. check to see what time it is, and
2. if it is after midnight, set the Menu (I can't tell if you mean a
form with a menu or a menu bar).

Regards

Jeff Boyce
<Office/Access MVP>
Its an actual form, not a menu bar. Sorry.
I do check the computer time, It's the after Midnite thing, especially
on the weekends when it goes from Saturday to Sunday!
Thanks
DS
 
D

DS

John said:
Access Date/Time values hold both dates and times in the same field;
as you have seen, programming gets more complicated when you separate
them. I'd suggest just two fields - StartTime (e.g. #11/29/2005
11:30pm#) and EndTime (e.g. #11/30/2005 2:15am#).

John W. Vinson[MVP]
I'll give it a try!
Thanks
DS
 

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

After Midnite 4
Filtered Records 1
DCount Syntax 6
DateDiff Problem 9
SQL to DCount 4
Date Dilema 3
Subtracting Time 6
Uninstall and install Publisher 365 0

Top