Hi,
try to adapt VBA (visual basic for applications). Macros are very limited
and cannot handle error handling.
Try this on the on click event or after update event of the checkbox in your
main form:
If Me.YourCheckBox = True Then
MsgBox("Please enter a value in CALLDATE")
Me!SubformName.Form.ControlName.SetFocus
End If
HTH
Good luck
--
Oliver
Admin Specialist & Computer Science Major @ UMD - Go Terps -
http://www.oli-s.de
"Chi" wrote:
> Hi,
> I would like to set up a macro to require data entry.
>
> I have a form that has Main form and sub form.
>
> One of the fields that located on the main form is CALL (yes/No type)
>
> One of the fields located in the subform is CALLDATE field. It is wonderful
> if soon I check CALL field located main form, it will pop up the message "
> please enter CALLDATE field in subform".
>
> If I don't check CAll field in the main form, no message pop up
> Please help
>
> Thanks
> Chi