M
Mark Kubicki
I have 2 tables that are related:
- tblManufacturer contains,among other things, a list of manufacturers
[strMfr] and the name of the agency that reps them [strRepAgency]; there
is only 1 of each manufacturer, and each manufacturer has only 1 rep
- tblRepAgencies contains detailed information about the RepAgency; each
RepAgency can represent many manufacturers
I have 2 forms:
- frmManufacturers is a continuous form with a text box: txtMfrm and a
combo: cboRepAgency (with a row source of tblRepAgencies); Manufactures'
names [strMfr] are entered in this form, and a rep agency [strRepAgency] can
be chosen for manufacturer
- frmRepAgencies is a single form where the RepAgencies are entered; it also
contains a continuous subform [subRepAgencies_MfrList] where manufacturers
that the agency represents can be entered / viewed
The problem I have is:
- When I add a new manufacturer to the frmRepAgencies subform
[subRepAgencies_MfrList], it creates a new record in tblManufacturer. This
causes a manufacturer to have multiple entries
- What I want it to do is update the manufacture's rep info on the existing
record (not create a duplicate entry for the same manufacturer.)
Any suggestions would be greatly appreciated...
thanks in advance,
mark
- tblManufacturer contains,among other things, a list of manufacturers
[strMfr] and the name of the agency that reps them [strRepAgency]; there
is only 1 of each manufacturer, and each manufacturer has only 1 rep
- tblRepAgencies contains detailed information about the RepAgency; each
RepAgency can represent many manufacturers
I have 2 forms:
- frmManufacturers is a continuous form with a text box: txtMfrm and a
combo: cboRepAgency (with a row source of tblRepAgencies); Manufactures'
names [strMfr] are entered in this form, and a rep agency [strRepAgency] can
be chosen for manufacturer
- frmRepAgencies is a single form where the RepAgencies are entered; it also
contains a continuous subform [subRepAgencies_MfrList] where manufacturers
that the agency represents can be entered / viewed
The problem I have is:
- When I add a new manufacturer to the frmRepAgencies subform
[subRepAgencies_MfrList], it creates a new record in tblManufacturer. This
causes a manufacturer to have multiple entries
- What I want it to do is update the manufacture's rep info on the existing
record (not create a duplicate entry for the same manufacturer.)
Any suggestions would be greatly appreciated...
thanks in advance,
mark