G
Garry
I have a form that contains a required Date field. The OnExit event checks
for Null & if true displays a MsgBox saying “Date is required†and uses
Cancel=True to keep focus on the Date control. I also have a “Fail-Safeâ€
command button called “CANCEL†that undoes the record. The problem is once I
enter the Date control, I cannot get out unless I enter a date. Ideally, I
would like the Cancel button to be able to override the Null test in the
OnExit event of the Date control. Is there a way to see if the Cancel button
was “clicked†within the OnExit event of the Date control so that I can
bypass the VBA code that keeps you trapped in the date control?
Tanks Garry Gross
for Null & if true displays a MsgBox saying “Date is required†and uses
Cancel=True to keep focus on the Date control. I also have a “Fail-Safeâ€
command button called “CANCEL†that undoes the record. The problem is once I
enter the Date control, I cannot get out unless I enter a date. Ideally, I
would like the Cancel button to be able to override the Null test in the
OnExit event of the Date control. Is there a way to see if the Cancel button
was “clicked†within the OnExit event of the Date control so that I can
bypass the VBA code that keeps you trapped in the date control?
Tanks Garry Gross