G
Guest
I have form1 that pulls up student id & info. It includes a subform that
displays all of the students lunch transaction from table B. I have an 'add
transaction button' which allows entries of new lunch transactions into table
B. Instead of a blank form, I've stored the student id value from form1 into
the 'add transaction' form (so that I do not have to consistently enter the
id), but get an error when I try to save. I believe it is because you cannot
have duplicates in Table A. But I am trying to add a transaction to Table B.
How can I extract the student id from form 1 and insert the value in the
student id field (as if I have entered it) in the 'add transaction' form? In
the 'transaction entry form' in the student id data control, I had
=Forms![Form1].[studentid]. The form is pulled up with the student id but
cannot save, error "You cannot add / change record because a related record
is required in Table A". ? Thanks!
tokyo681
displays all of the students lunch transaction from table B. I have an 'add
transaction button' which allows entries of new lunch transactions into table
B. Instead of a blank form, I've stored the student id value from form1 into
the 'add transaction' form (so that I do not have to consistently enter the
id), but get an error when I try to save. I believe it is because you cannot
have duplicates in Table A. But I am trying to add a transaction to Table B.
How can I extract the student id from form 1 and insert the value in the
student id field (as if I have entered it) in the 'add transaction' form? In
the 'transaction entry form' in the student id data control, I had
=Forms![Form1].[studentid]. The form is pulled up with the student id but
cannot save, error "You cannot add / change record because a related record
is required in Table A". ? Thanks!
tokyo681