C
Chris Kennedy
I have a subform which links to a master form. The relationship works fine
except when I add a new record for the master table. I have a button which
jumps to a new record and calculates a primary key for the master form and
inserts it into the value of a text field bound to the primary key of the
master table. When I add new records to the subform I get an automation
error from the Link Master fields property. I think it is not passing the
generated primary key to the subform. I have tried several way of setting
the subform foreign key on the add new record event and setting the default
value. Nothing works successfully. Any ideas.
except when I add a new record for the master table. I have a button which
jumps to a new record and calculates a primary key for the master form and
inserts it into the value of a text field bound to the primary key of the
master table. When I add new records to the subform I get an automation
error from the Link Master fields property. I think it is not passing the
generated primary key to the subform. I have tried several way of setting
the subform foreign key on the add new record event and setting the default
value. Nothing works successfully. Any ideas.