VB.NET Using Combobox to retrieve data from MS SQL DataBase and fill a textbox with the data
I am working on a VB.Net project in Visual Studio 2013 project. I want a combobox to retrieve data from ms access database and fill a textbox
I have a MS Access DB Named DataDB and i have a Form Named Form1 with a Combobox on it is Named cboData and three textBox Named txtName, txtPhone and txtAddress. The DataDB holds my customer Name, Phone and Address.
I want to use the ComboBox to access the DataDB and use the value to populate three textBox Named txtName, txtPhone and txtAddress in the form(load event)
It is really unclear what your motive is.But as far as i think,u want to populate a combo box from an access database(maybe).Then you can try this
Now, to add text to the textbox from the combo box, try :
If you think this is not what you want, then please clarify your needs
Datatable to textbox