Question Search Database

kieran82

Member
Joined
Feb 21, 2010
Messages
19
Programming Experience
Beginner
I have a customer form in vb.net 2008 and binded with microsoft access 2003. I have a Name, Address, Telephone No Textboxes. I want to search for a name in the search box and display all the details back in the textboxes. I know how to search and display in a datagrid but don't know how to do that. The rest Of the program is working. Can someone help me?
 
You can either bind the data to the TextBoxes, e.g.
VB.NET:
Me.nameTextBox.DataBindings.Add("Text", Me.customerBindingSource, "Name")
or you can just copy the data manually from a DataReader or DataTable to the TextBoxes.
 
Back
Top