Jain Brand wrote:[color=blue]
> Thanks for the info Allen. Unfortunately I'm using a query as the
> basis for my form so selecting Required Property in the table doesn't
> seem to work.
>
> I like the idea of adding code to Before Update Event of the form.
> I'm just started to explore VBA. Could you, or anyone else suggest
> some code to bring up an error message if the field is left empty
> (null) when the user tries to close the form.
>
> Any help is hugely appreciated. Thanks, Jain.
>
> *** Sent via Developersdex
http://www.developersdex.com ***[/color]
If IsNull(FieldName) Then
MsgBox "Must provide value for FieldName"
Cancel = True
End If
BTW, the Required property on a field in a table does carry through to queries
based on that table (would be pretty useless otherwise).
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com