Hello
I have a windows form with a list box that is poulated with from a dataset containing one table with two fields, name and surname. I need to display both the forename and surname in different text boxes as the user selects the name from the list box.
I can do this with one text box (name) using the following
TextBox3.Text = ListBox1.SelectedValue
But since the listbox is assigned i am unable to fill the second text box with the surname field
I am aware this can be done with the databind option on a web application but are stuck how to do it with a form.I am attached to a access database.
Any help v much appreciated
I have a windows form with a list box that is poulated with from a dataset containing one table with two fields, name and surname. I need to display both the forename and surname in different text boxes as the user selects the name from the list box.
I can do this with one text box (name) using the following
TextBox3.Text = ListBox1.SelectedValue
But since the listbox is assigned i am unable to fill the second text box with the surname field
I am aware this can be done with the databind option on a web application but are stuck how to do it with a form.I am attached to a access database.
Any help v much appreciated