Hi am having a problem with my weekday formula (kindly provided by the forum) thanks However I am using it in a Select Case and it doesn't appear to be working. I have tracked it from a breakpoint and it just bypasses the checking.
My code Is:
It's all plausable? isn't it?
My code Is:
Code:
Select Case Me.EndDate
Case Weekday(Me.EndDate) = 1 Or Weekday(Me.EndDate) = 7
MsgBox "Last Day of Leave is a " & WeekdayName([Me.EndDate]) & vbCrLf & "Invalid End Date", vbExclamation, "!Warning"
Cancel = True
Me.EndDate.Undo
Exit Sub
...other cases ...