This should be simple but it is not working. The set focus does not go to the end date field after the message. Whats wrong?
Thanks in advancefor any and all help.
If Me!EndDate > rs!PAyDate Then
lngRetval = MsgBox( _
"The date is not included in the Payroll History Table. You may need to Run an update to Payroll History Table. " & vbCrLf & "" & vbCrLf & "Check date or see the payroll administrator.", _
vbOKOnly + vbCritical + vbDefaultButton1, _
"ERROR ! - ")
Select Case lngRetval
Case vbOK
Me!EndDate.SetFocus
End Select
End If
Razor1
Thanks in advancefor any and all help.
If Me!EndDate > rs!PAyDate Then
lngRetval = MsgBox( _
"The date is not included in the Payroll History Table. You may need to Run an update to Payroll History Table. " & vbCrLf & "" & vbCrLf & "Check date or see the payroll administrator.", _
vbOKOnly + vbCritical + vbDefaultButton1, _
"ERROR ! - ")
Select Case lngRetval
Case vbOK
Me!EndDate.SetFocus
End Select
End If
Razor1