Waspman
Posts: 948
|
| Posted: 04/28/2006, 4:29 AM |
|
Anyone found a way to tell the difference from a date?
It's a golf course booking form with prices that are different at the weekend.
Found a few scripts on google, just wondered if anyone here had a solution.
Ta.
_________________
http://www.waspmedia.co.uk |
 |
 |
Waspman
Posts: 948
|
| Posted: 04/28/2006, 5:47 AM |
|
I've sorted it - VB's Weekday function.
Sorry for clutering the place
_________________
http://www.waspmedia.co.uk |
 |
 |
Chris__T
Posts: 339
|
| Posted: 05/02/2006, 8:02 AM |
|
It's ok. Can you paste the code or link to the function for us curious folk?
|
 |
 |
Waspman
Posts: 948
|
| Posted: 05/02/2006, 8:11 AM |
|
Dead easy..
DayNum= Weekday(Form.Control.Value)
1=Saturday /7=Sunday
Look at me giving something back
_________________
http://www.waspmedia.co.uk |
 |
 |
Waspman
Posts: 948
|
| Posted: 05/03/2006, 12:46 AM |
|
sorry nearly right...
1 = vbSunday - Sunday (default)
2 = vbMonday - Monday
3 = vbTuesday - Tuesday
4 = vbWednesday - Wednesday
5 = vbThursday - Thursday
6 = vbFriday - Friday
7 = vbSaturday - Saturday
_________________
http://www.waspmedia.co.uk |
 |
 |