db connections and text boxes

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
 
R

rowe_newsgroups

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
 
S

si_owen

all done.

sorry if it was a bit ambigious

just created an sql connection and pulled data through.


cheers

simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top