hi i have a form with a combo box and two text boxes on it.
i want it set up so when a selection is made from the combo box the two text boxes will display the corresponding data from the table.
the table name is: New Plymouth
the fields included in the table: Destination
Kilometres One Way
Kilometres Return
the name of the combo box : Dest
the first text box: Kms
the 2nd text box: Kms1
the combo box displays the destinations from the table, i want the Kms text box to display the one way kms and i want the Kms1 text box to display the return kms.
i currently have the following code which works fine with one text box but i am un sure what changes are required to make it work for two text boxes.
the code is:
after update in the combo box
Private Sub Dest_AfterUpdat e()
Me!Kms = Me!Dest.Column( 1)
End Sub
can anyone please help me???????
i want it set up so when a selection is made from the combo box the two text boxes will display the corresponding data from the table.
the table name is: New Plymouth
the fields included in the table: Destination
Kilometres One Way
Kilometres Return
the name of the combo box : Dest
the first text box: Kms
the 2nd text box: Kms1
the combo box displays the destinations from the table, i want the Kms text box to display the one way kms and i want the Kms1 text box to display the return kms.
i currently have the following code which works fine with one text box but i am un sure what changes are required to make it work for two text boxes.
the code is:
after update in the combo box
Private Sub Dest_AfterUpdat e()
Me!Kms = Me!Dest.Column( 1)
End Sub
can anyone please help me???????
Comment