R
RobChurch
I have a main form that will look too busy if I put in a subform, so I added
a button that will launch the subform. The problem I'm having is that when I
add new records to this subform it doesn't automatically update the foreign
key field with the primary key value. The tables are linked properly because
if I make the subform a part of the main form the foreign key is updated
properly. This update mechanism seems to get broken once I make the subform
a standalone form via openform from the button's OnClick event. I've also
enabled referential integrity for updates.
a button that will launch the subform. The problem I'm having is that when I
add new records to this subform it doesn't automatically update the foreign
key field with the primary key value. The tables are linked properly because
if I make the subform a part of the main form the foreign key is updated
properly. This update mechanism seems to get broken once I make the subform
a standalone form via openform from the button's OnClick event. I've also
enabled referential integrity for updates.