S
SandyR
I have a form with a subform. I want to make sure that there is an entry in
a particular field of at least one linked record in the subform. This works
some of the time, but not others, depending on whether the user has clicked
on the empty record at the end of the subform. Here is my code:
If IsNull(frmaccountssubform.Form!account_number) Then
MsgBox "please enter an account number", vbOKOnly
checkforerrors = True
End If
How can I make sure that this looks at the first record of the sub-form at
all times? The code is in an on-click procedure for an update button. I
want to prevent the update if the field is blank.
a particular field of at least one linked record in the subform. This works
some of the time, but not others, depending on whether the user has clicked
on the empty record at the end of the subform. Here is my code:
If IsNull(frmaccountssubform.Form!account_number) Then
MsgBox "please enter an account number", vbOKOnly
checkforerrors = True
End If
How can I make sure that this looks at the first record of the sub-form at
all times? The code is in an on-click procedure for an update button. I
want to prevent the update if the field is blank.