People are entering information for days of the week.. what is the easiest way to check to see if they entered something for a Saturday or Sunday? <BR><BR>Any ideas are appreciated.<BR><BR>dep<BR>
returns 0 to 6 or 1 to 7, i forget... but the highest and lowest numbers are saturday and sunday.
if weekday(yourDate) = 0 Then<BR>'or use vbSunday instead of 0<BR><BR>Check out the weekday and weekdayname functions... they'll give you the exact things returned.
Try the Weekday function<BR><BR><BR>dow = Weekday(dt)<BR><BR>will return 1 - 7. Sunday - Saturday unless you specify otherwise.
1 instead of 0<BR><BR>No matter... vbSunday would've sufficed.<BR><BR>Why can't VBS behave with every other programming language and start at 0????
and sometimes it does, and sometimes it doesn't, like in arrays and strings... blech
This is one of my major compaints about VB in general. Some things are 0 based, while other are 1.
Some things DO start at 0. Others don't.<BR><BR>Bah! We should all go back to BASIC.