I'm nearly done with a project and I've got the right idea, but I'm not sure if I'm implementing it correctly.
The rundown, I've got an Access DB (no way around this) with 28 tables, two for each day of the week covering two weeks.
Now what I want to do is have my code display one week and if it's not that week, display the other. I've got that set up, but I just want to make sure that my formatting is correct.
Here's what I have:
ctime = FormatDateTime(Time,vbShortTime)
cday = WeekDayName(WeekDay(Date))
cweek = DatePart("ww", Now)
As of this writing we're in week 21.
So I want to say...
<% if cweek = "21" or "23" or "25" then%> (the ... would represent the other odd weeks in the year.
Display the code for the odd weeks.
<% else %>
Display the even number week's code.
<% end if %>
Would that work?