db connections and text boxes

  • Thread starter Thread starter si_owen
  • Start date Start date
S

si_owen

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
 
however i need the code to populate the answer text box(text box 2)
from the db via the list box.

I'm afraid I don't understand what you're trying to say. Could you
elaborate on what exactly you wish to accomplish?

Thanks,

Seth Rowe
 
all done.

sorry if it was a bit ambigious

just created an sql connection and pulled data through.


cheers

simon
 
Back
Top