J
JOM
I have 2 unbound textboxes(txtbegindate) and (txtenddate) on my form. when i
enter dates in those 2 boxes, and press preview, I will need to open a report
based on those between dates... It was working ok, until I entered 12/31/05
and 01/02/2006 and all the records appeared in my report but there is no data
for those date... so what is wrong with my sntax below?
If IsDate(txtBeginDate) And IsDate(txtEndDate) Then
If IsDate(txtEndDate) < IsDate(txtBeginDate) Then
MsgBox "The ending date must be later than the beginning date."
txtEndDate.SetFocus
Exit Sub
End If
Else
MsgBox "Please use a valid date for the beginning date and the
ending date"
End If
enter dates in those 2 boxes, and press preview, I will need to open a report
based on those between dates... It was working ok, until I entered 12/31/05
and 01/02/2006 and all the records appeared in my report but there is no data
for those date... so what is wrong with my sntax below?
If IsDate(txtBeginDate) And IsDate(txtEndDate) Then
If IsDate(txtEndDate) < IsDate(txtBeginDate) Then
MsgBox "The ending date must be later than the beginning date."
txtEndDate.SetFocus
Exit Sub
End If
Else
MsgBox "Please use a valid date for the beginning date and the
ending date"
End If