This must be a common issue where you
have master table records stored without any related sub table records via a
form, which is in essence a useless record.
well, that's a pretty sweeping statement, hon, and not correct. there are
many applications where some records in a parent table have one or more
related records in a child table, while other records in the parent table
legitimately do not.
for your scenario, i suppose if you can control the user's movement to the
next/previous/new record in the main form, or the user's closure of the main
form, allowing these actions *only* from command buttons on the form, you
could then test for records in the subform before allowing the movement. for
instance,
If Me!SubformName.Form.RecordsetClone.RecordCount < 1 Then
Exit Sub
Else
' put here the code that would perform the close or move action
End If
but i have to say, it's not easy to restrict movement in a form from record
to record, because there are so many ways for a user to move between
records - including the Tab button, the keyboard arrow keys, the keyboard
page up/down keys, a mouse scrollwheel, and probably more i'm not even
thinking of.
hth