My primary data table (call it table "A") has only a few fields, one of which is "category." For most of the categories, the data in table "A" is all that is needed. For one category, however, there are over 30 additional fields. Therefore I set up a separate table for this "extended" data (table "B") and created a one-to-one relationship on record id. All this is working fine for most of what I need (update forms, reports, etc.)
I am attempting to create a data entry form for new records (only new records - separate form for updating), and I want to display the data from table "B" in a subform. Since this is for new records, a query isn't suitable for the data source. The main form for entering records for table "A" is working fine. How can I set up the subform to be "called" based on the category selected in the main form (table "A")? Based on one category, it needs to display the subform and create a new record in table "B" with the same record number as table "A.". I'm assuming this would need to be done with VBA code, and have made some attempts. My first (and I think biggest) problem is getting the record number assigned in table B to match the record number in table A. Also, getting the forms to display as a form/subform, not as 2 separate forms.
Thanks in advance for all help!!