I have a many-to-many relationship set up with a join table: I have ConsultantT and VendorT which are linked in ConsultantXVendorT (with fields ID, ConsultantID, and VendorID). I used the relationship window to set up explicit one-to-many relationships between ConsultantT and ConsultantXVendorT as well as VendorT and ConsultantXVendorT. Now, I am building a form for a user to enter Consultant data, which is based on ConsultantT. In order to make a combobox where the user can select the VendorName from an existing record in VendorT for a new consultant, how should I pull in the VendorID//store the data that is input? I tried to use the wizard to build a combobox but since there is no VendorID field in my ConsultantT, I got a bit lost.
Reply from Alex Hedley:
If you've got it as a subform on ConsultantF you can just add as many Vendors as you need and have the ConsultantID take from Forms!ConsultantF!ConsultantID.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 1.