How To Populate A Textbox From SQL

acidburnn

New member
Joined
Nov 21, 2007
Messages
2
Location
Toronto, ON
Programming Experience
1-3
Hi, I'm fairly new to integrating SQL into vb .net. I have a form with a bunch of textboxes that need to be populated with data from certain cells of a table from a SQL database. As an example I have a database called "PORINI" and a table called dbo.GMFLINEM with columns such as "COMPANY" and "DIVISION". I also have textboxes named txtCompany and txtDivision. Now what I need is to populate txtCompany with a value from the COMPANY column and also populate txtDivision with a value from the DIVISION column on form load. I don't really have any idea how to do this so any help would be greatly appreciated.
 
Back
Top