error trapping on subform

G

Guest

I am trying to error trap on a subform so after a date is filled a set number
of fields on the same record line need to be filled in otherwise the box will
be cleared and the required fileds highted in red.

I have achieved this for when on a single view form but cannot when there
are multilpe records in the subform linked the main?
 
G

Guest

You can use the BeforeUpdate event of the sub form to check if all the values
are filled, if not prompt a message

If IsNull(Me.[TextBoxNAme]) Then
MsgBox "Field must be filled"
Cancel = True ' process will be stoped
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top