Hi,
I have a table on my db called nationality which is built up of two fields;
1) nation_code 2) nation
On my main form, called stud_details I have a field called cbonation which has a combo box with only the nation displayed not the nation_code.
What I want to do is when I scroll on the combo box and find a nation such as UK , instead of the nation to be populated on the field I want the nation_code to be populated instead.
This code is not working any help please
Private Sub cbonation_AfterUpdate()
cbonation = Me.Nationality.Column(0)
End Sub
Can this be done anyway!!!!
Thanks
I have a table on my db called nationality which is built up of two fields;
1) nation_code 2) nation
On my main form, called stud_details I have a field called cbonation which has a combo box with only the nation displayed not the nation_code.
What I want to do is when I scroll on the combo box and find a nation such as UK , instead of the nation to be populated on the field I want the nation_code to be populated instead.
This code is not working any help please
Private Sub cbonation_AfterUpdate()
cbonation = Me.Nationality.Column(0)
End Sub
Can this be done anyway!!!!
Thanks