G
Guest
I have a main form that has as its recordsource a table (tblControl) with 4
fields (control number (DMax generated), name, date, type). Its subform is
linked by type and in continuous view displays any records in my data table
(tblReceipts)without a control number.
I originally had it set up for the user to enter the control number
displayed on the main form into the empty field displayed in the subform, but
quickly deduced that this was a poor choice in design - the user could enter
any number that was a valid record in tblControl (since there is referential
integrity between the tables).
I'd like to place a checkbox on the subform for the user to identify the
records that should be updated with the main form's control number. I'm
thinking I should use a BeforeUpdate procedure, but I'm struggling with the
correct code.
Thanks so much for your assistance.
fields (control number (DMax generated), name, date, type). Its subform is
linked by type and in continuous view displays any records in my data table
(tblReceipts)without a control number.
I originally had it set up for the user to enter the control number
displayed on the main form into the empty field displayed in the subform, but
quickly deduced that this was a poor choice in design - the user could enter
any number that was a valid record in tblControl (since there is referential
integrity between the tables).
I'd like to place a checkbox on the subform for the user to identify the
records that should be updated with the main form's control number. I'm
thinking I should use a BeforeUpdate procedure, but I'm struggling with the
correct code.
Thanks so much for your assistance.