D
Doug
Access 2000:
The following code changes my date from 08 Mar 03 to 10 Mar 03.
What am I doing wrong?
TIA
Doug
Private Sub Expires_DblClick(Cancel As Integer)
If Me![Expires] < Date Then
Me![Expires] = DateAdd("Y", 2, Me![Expires])
Else
Me![Expires] = DateAdd("Y", -2, Me![Expires])
End If
End Sub
The following code changes my date from 08 Mar 03 to 10 Mar 03.
What am I doing wrong?
TIA
Doug
Private Sub Expires_DblClick(Cancel As Integer)
If Me![Expires] < Date Then
Me![Expires] = DateAdd("Y", 2, Me![Expires])
Else
Me![Expires] = DateAdd("Y", -2, Me![Expires])
End If
End Sub