Validate Date between Ranges
Sub Feed_Check_Date_Function()
' Date is within the Valid Range
Check_Date "2007-05-01", "2007-05-10", "2007-05-01"
' Date is NOT within the Valid Range
Check_Date "2007-05-01", "2007-05-10", "2007-05-21"
End Sub
Function Check_Date(ByVal StartDate As Date, ByVal EndDate As Date, ByVal DateTobeChecked As Date)
If DateDiff("d", StartDate, DateTobeChecked) <> 0 Then
MsgBox "Enter a correct date!!!"
End If
End Function
Friday, May 04, 2007
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.
No comments:
Post a Comment