
Signature
Newbies need extra loven.........
Chad,
try the following code, is this gentle enough for you?
If just checks that the user has chosen a date, and if they haven't, gives
them the message and sets ValidDates to false.
Private Function ValidDates() As Boolean
Dim strMsg As String
ValidDates = True
If IsNull(Me.txtStartDate) Then
strMsg = "You must choose a start date."
ElseIf Not IsDate(me.txtStartDate) then
strMsg = "You must choose a valid date."
End If
If Len(strMsg) Then
MsgBox strMsg, vbOKOnly, "Date Entry Error"
ValidDates = False
End If
End Function
>I want to only check one text box named txtStartDate instead of two like in
> the example. Thanks!
[quoted text clipped - 40 lines]
>> >
>> > End Function
Chad - 19 Dec 2007 01:55 GMT
I just didnt get it!!! Thanks....

Signature
Newbies need extra loven.........
> Chad,
> try the following code, is this gentle enough for you?
[quoted text clipped - 64 lines]
> >> >
> >> > End Function