G
Guest
I have a data entry screen where the user is only suppose to enter a date
that is within this range "10/1/2002 to 9/30/2005".
The case statement that I have just entered all takes such as 2001, 2000 or
2006,2008. I don;t want this. Just the dates in the date range that I
specify aboved.
Here is the case statement:
Dim TextDate As Date
TextDate = DateSerial(Right(Me!INDPTDOS.Value, 4), _
Left(Me!INDPTDOS.Value, 2), _
Mid(Me!INDPTDOS.Value, 3, 2))
Select Case TextDate
Case Between #10/1/2002# And #9/30/2005#
' do nothing
Case Else
MsgBox "You have entered an invalid date."
Cancel = True
End Select
What can I do to get this working correctly. It's been a week now and I
haven't been able to master this yet.
that is within this range "10/1/2002 to 9/30/2005".
The case statement that I have just entered all takes such as 2001, 2000 or
2006,2008. I don;t want this. Just the dates in the date range that I
specify aboved.
Here is the case statement:
Dim TextDate As Date
TextDate = DateSerial(Right(Me!INDPTDOS.Value, 4), _
Left(Me!INDPTDOS.Value, 2), _
Mid(Me!INDPTDOS.Value, 3, 2))
Select Case TextDate
Case Between #10/1/2002# And #9/30/2005#
' do nothing
Case Else
MsgBox "You have entered an invalid date."
Cancel = True
End Select
What can I do to get this working correctly. It's been a week now and I
haven't been able to master this yet.