G
Guest
Among others, my database includes three tables: tblBrand, tblBrandDetails,
and tblWholesaler with a many-to-many relationship between tblBrand and
tblWholesaler.
The tblBrandDetails table consists of two fields: BrandID and WholesalerID
and the WholesalerID field is a lookup field with its row source set to
lookup the WholesalerID and WholesalerName fields in tblWholesaler.
I have a Brand form (single form view) with a subform (datasheet view) in my
database. The subform (fsubSelectWholesalers) is based on a query that has a
one-to-many relationship between tblWholesaler and tblBrandDetails. There is
a combo box on the subform that allows you to select one or more wholesalers
related to the brand.
I have a button on the Brand form that opens another form (frmAddWholesaler)
so that if the wholesaler is not in the combo box you can open
frmAddWholesaler and add it.
But after adding a new wholesaler and closing frmAddWholesaler, it doesn’t
show up in the combo box on the subform unless you close the Brand form (and
the embedded fsubSelectWholesalers) and reopen it. I’ve tried adding a save
record button on frmAddWholesaler, on the subform and on the Brand form, but
it still doesn’t work. Is there a simple way (a new user may hopefully
understand) to make this work?
and tblWholesaler with a many-to-many relationship between tblBrand and
tblWholesaler.
The tblBrandDetails table consists of two fields: BrandID and WholesalerID
and the WholesalerID field is a lookup field with its row source set to
lookup the WholesalerID and WholesalerName fields in tblWholesaler.
I have a Brand form (single form view) with a subform (datasheet view) in my
database. The subform (fsubSelectWholesalers) is based on a query that has a
one-to-many relationship between tblWholesaler and tblBrandDetails. There is
a combo box on the subform that allows you to select one or more wholesalers
related to the brand.
I have a button on the Brand form that opens another form (frmAddWholesaler)
so that if the wholesaler is not in the combo box you can open
frmAddWholesaler and add it.
But after adding a new wholesaler and closing frmAddWholesaler, it doesn’t
show up in the combo box on the subform unless you close the Brand form (and
the embedded fsubSelectWholesalers) and reopen it. I’ve tried adding a save
record button on frmAddWholesaler, on the subform and on the Brand form, but
it still doesn’t work. Is there a simple way (a new user may hopefully
understand) to make this work?