M
mattc66 via AccessMonster.com
I am trying to create some code that will confirm that the user entered a
valid date. The date must be today or in the future. Below is the code I
thought would work. It doesn't... Can anyone give me some help with the
proper syntax.
If txtNewEstShipDate >= Now() Then
Me.[sfrmPKOrderDetail].Form![EST_SHIP] = Me.txtNewEstShipDate
Else: MsgBox ("You entered an invalid Date"), vbCritical, "Invalid Date"
End If
Thanks
Matt
valid date. The date must be today or in the future. Below is the code I
thought would work. It doesn't... Can anyone give me some help with the
proper syntax.
If txtNewEstShipDate >= Now() Then
Me.[sfrmPKOrderDetail].Form![EST_SHIP] = Me.txtNewEstShipDate
Else: MsgBox ("You entered an invalid Date"), vbCritical, "Invalid Date"
End If
Thanks
Matt