R
RBDU
Hi all! thanking anyone for a reply:
Was A97 came into work & IT updated access to A2003.
Sob! Sob!
Anyway I have this code problem with the before update. Code is:
...................................................
Private Sub Command286_Click()
If me.Call_off > Date + 1 Then
Msgbox "This date is in the future, please redo!"
Me.Call_off.undo
Cancel = True
ElseIf Year (Nz (Me.Call_off)) < Year ((Now) - 1) Then
Msgbox "This date is for a previous year, please redo"
Me.Call_off.undo
Cancel = True
End if
End Sub
............................................................
Future date & time section works except for a date in a previous year does
not.
If I put a date (date & time format) in for this year it will except it,
but if I go to delete the date & time data (to correct it) it tells me the
date is for a previous year, but it is not.
Any ideas
Peter
Was A97 came into work & IT updated access to A2003.
Sob! Sob!
Anyway I have this code problem with the before update. Code is:
...................................................
Private Sub Command286_Click()
If me.Call_off > Date + 1 Then
Msgbox "This date is in the future, please redo!"
Me.Call_off.undo
Cancel = True
ElseIf Year (Nz (Me.Call_off)) < Year ((Now) - 1) Then
Msgbox "This date is for a previous year, please redo"
Me.Call_off.undo
Cancel = True
End if
End Sub
............................................................
Future date & time section works except for a date in a previous year does
not.
If I put a date (date & time format) in for this year it will except it,
but if I go to delete the date & time data (to correct it) it tells me the
date is for a previous year, but it is not.
Any ideas
Peter