Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select ComboBox and Populate Other TextBoxes

Status
Not open for further replies.

Cisco281

Programmer
Sep 10, 2003
1
US
I have a ComboBox (in the OrderFrm) that is looking at the PartsTbl. I would like to select the Part Number (in the OrderFrm)and auto populate the rest of the fields from the PartsTbl (CMD, Rev, Bios in the OrderFrm).
 
Assuming that the combo box control is called cboPickPart

and the Row Source is
PartsId, CMD, Rev, Bios

and that there are text box controls on your form called
txtCMD
txtRev
txtBios

THEN
In the cboPickPart_AfterUpdate event put

txtCMD = cboPickPart.Column(1)
txtRev = cboPickPart.Column(2)
txtBios = cboPickPart.Column(3)


'ope-that-'elps.




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top