ok, in my database i have StartTime | EndTime | DayDay
start time is in the format 22:30
end time is in the same format i.e 00:30
dayday is the numerical equiv of day of the week i.e sunday = 1, monday = 2, etc.
What i want to display is the nearest matching recording where StartTime >= FormatDateTime(NOW, 4)
I want it to display the record with the nearest start time that has started but not yet ended.
this is the nearest i got...
WHERE StartTime > '" + FormatDateTime(NOW, 4) + "' AND (DayDay = " + Replace(rsSchedule__varDayDay, "'", "''") + ")"
how could i do something like this
WHERE StartTime = FormatDateTime(NOW, 4) OR FormatDateTime(NOW, 4) BETWEEN StartTime AND EndTime
i know the above code is not correct, but it should help you understand what im trying to do.