FrontPager
Programmer
Hi,
I'm connecting to a table that has the following fields:
DayName (Monday, Tuesday, etc.)
Start (11am, 3pm, etc)
Stop (12pm, 4pm, etc)
Protocol (Instructions specific to that day/time)
Here's my SQL statement:
SELECT * FROM Protocols WHERE Start<=Time() AND Stop>=Time()
That works fine, but I also want to match Dayname to the current day.
For instance, if today is Thursday, I only want to pull the records from the table "Protocols" where Dayname is Thursday, and Start/Stop is within the current time.
How should my SQL look??
I'm connecting to a table that has the following fields:
DayName (Monday, Tuesday, etc.)
Start (11am, 3pm, etc)
Stop (12pm, 4pm, etc)
Protocol (Instructions specific to that day/time)
Here's my SQL statement:
SELECT * FROM Protocols WHERE Start<=Time() AND Stop>=Time()
That works fine, but I also want to match Dayname to the current day.
For instance, if today is Thursday, I only want to pull the records from the table "Protocols" where Dayname is Thursday, and Start/Stop is within the current time.
How should my SQL look??