1 : n Default value for the n
Hello,
I am working on 2 data entry forms.
The first form is to enter data to a table (the '1' table), the primary key is an autonumber field.
The second form that must open after a new row has been added tot the '1' table is used to add 1 or more rows to the 'n' table. I want to have the foreign key - field in the form to enter data to the 'n' table to have the default value of the primary key last assigned to the '1' table.
I have tried various ideas to set the default value but they resulted amongst others in #Name? errors.
Who can help setting the default value on the second form to the last assigned primary key number in the first table.
Many thanks in advance,
John
|