|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
db connections and text boxesi have a db linked to a list box what i also have is 2 text boxes which need to be populated from the db via the list box. the two records i need returning from the same table are question and answer. the first text box is populated by the question (when list box item selected) using the following code: Me.TextBox1.Text = Me.ListBox1.SelectedItem.Text however i need the code to populate the answer text box(text box 2) from the db via the list box. many thanks simon > however i need the code to populate the answer text box(text box 2) I'm afraid I don't understand what you're trying to say. Could you> from the db via the list box. elaborate on what exactly you wish to accomplish? Thanks, Seth Rowe si_owen wrote: Show quoteHide quote > hi all > > i have a db linked to a list box > > what i also have is 2 text boxes which need to be populated from the db > via the list box. > > the two records i need returning from the same table are question and > answer. > > the first text box is populated by the question (when list box item > selected) using the following code: > > Me.TextBox1.Text = Me.ListBox1.SelectedItem.Text > > however i need the code to populate the answer text box(text box 2) > from the db via the list box. > > many thanks > > simon all done.
sorry if it was a bit ambigious just created an sql connection and pulled data through. cheers simon
how do you use Class to hold global variables?
VB.NET Datagrid with pictures VB equivalent of this C# code Writing Data In Tabular format in Text File. What framework is running in this scenario? VBNET2005 : Manipulating MS Access tabledefinitions in VB.NET -> Create, Copy and Drop Table. Not CLS-compliant warning... Arrow on a button control User controls in VS 2005 .NET FrameWork 1.1 Winform DataGrid |
|||||||||||||||||||||||