Bassel, note that rocco and i are each explaining how to meet two
*different* objectives, and neither one of us knows which one you actually
want.
i'm explaining a solution that let's you *enter* one new record in a subform
if there are no records already existing for the current record in the main
form, but does *not* allow entry of a new record in the subform when there
is already one or more records displayed in the subform.
rocco is explaining a solution that displays only one record in the subform
for the current mainform record, regardless of how many related subform
records exist. i don't think it limits data entry in the subform (in other
words, i don't think that the query is a "non-updateable" query) but i'm not
sure - rocco could tell you for sure.
as you can see, two very different solutions. depending on what you're
actually trying to accomplish, you may need one, or both, or neither. i just
want you to be clear on what you're "getting" from us.
hth