equestrian
Technical User
I have frmCustomerLookup with 2 combo boxes and a subform. One combo box allows the user to select a customer. The other combo box allows the user to select a part number. The subform then shows all invoice lines where the selected customer has bought the selected part. This all works fine.
Sometimes a part may have more than one possible part number (maybe 2 vendors use different number). We call these cross references. Another possibility is there may be 2 totally different part numbers that can be called the same thing.
Here are 2 examples:
Our part number: AGEAR Cross Reference: 30412
Our part number: HOUSING Cross Reference: 123
Our part number: CASE Cross Reference: 123
So, here is what I am trying to accomplish. User types 123 in combo box (cboPartNumber) and another form (frmXref) is opened On Not In List. This form has a text box (123 is filled in automatically) and a subform (frmXref_sub) that lists all cross references for 123. The user double clicks on the appropriate part number and the form closes and fills cboPartNumber with the part number selected in frmXref_sub.
Everthing works except I cannot figure out how to get the value to be filled in on cboPartNumber. I am attaching a copy of db if this would make it more clear. Does anyone have any suggestions?
Sometimes a part may have more than one possible part number (maybe 2 vendors use different number). We call these cross references. Another possibility is there may be 2 totally different part numbers that can be called the same thing.
Here are 2 examples:
Our part number: AGEAR Cross Reference: 30412
Our part number: HOUSING Cross Reference: 123
Our part number: CASE Cross Reference: 123
So, here is what I am trying to accomplish. User types 123 in combo box (cboPartNumber) and another form (frmXref) is opened On Not In List. This form has a text box (123 is filled in automatically) and a subform (frmXref_sub) that lists all cross references for 123. The user double clicks on the appropriate part number and the form closes and fills cboPartNumber with the part number selected in frmXref_sub.
Everthing works except I cannot figure out how to get the value to be filled in on cboPartNumber. I am attaching a copy of db if this would make it more clear. Does anyone have any suggestions?