I have two linked forms - one is launched from a button in the first. The forms are based on two tables which are linked in a one-to-many relationship.
When the second form is launched, it displays filtered information based on the primary key number of record that was being used (I got the VBA code from the forms wizard).
I can't add new records in the second form - an error message appears saying that some data is required in the main table. I need the form to automatically fill in the foreign key to be the same as the primary key (this is the link between the tables) when a new record is created.
Does anyone know what is going wrong?
Abi
When the second form is launched, it displays filtered information based on the primary key number of record that was being used (I got the VBA code from the forms wizard).
I can't add new records in the second form - an error message appears saying that some data is required in the main table. I need the form to automatically fill in the foreign key to be the same as the primary key (this is the link between the tables) when a new record is created.
Does anyone know what is going wrong?
Abi