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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMBO BOXES

Status
Not open for further replies.

Malta393

Technical User
Apr 8, 2002
18
EU
FORM:I need a Combo box that when selected fills in another
field on the form

e.g First Name(combo)
Selected First Name :Bob
Fills in Surname Field Automatically

Any Ideas

Cheers
 
Hi,
In the After Update event of the first name combo box, enter Me![Surname text box] = Me![first name combo box].Column(1)

Column(1) is the second column of the combo box which is the surname.
 
rushdib's solution does require the surname to be in the second column on the combo box

So the RowSource on the combo will need to be something like

RowSource = "SELECT firstName, surName FROM tblNames"
BounndColumn = 1
ColumnCount = 2


G LS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top