PC Review


Reply
Thread Tools Rate Thread

db connections and text boxes

 
 
si_owen
Guest
Posts: n/a
 
      17th Oct 2006
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

 
Reply With Quote
 
 
 
 
rowe_newsgroups
Guest
Posts: n/a
 
      17th Oct 2006
> 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


si_owen wrote:
> 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


 
Reply With Quote
 
si_owen
Guest
Posts: n/a
 
      18th Oct 2006
all done.

sorry if it was a bit ambigious

just created an sql connection and pulled data through.


cheers

simon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form Text Boxes - Copy format of text boxes NDBC Microsoft Excel Misc 3 2nd Jul 2009 02:02 AM
Setting an array of text boxes equal to individual form text boxes lcaretto Microsoft Excel Programming 6 19th Sep 2008 04:19 PM
Aligning check boxes and text boxes with regular text =?Utf-8?B?c3NiZWxs?= Microsoft Word Document Management 1 28th Mar 2007 02:12 AM
RE: Aligning check boxes and text boxes with regular text =?Utf-8?B?U2ltb24gSm9uZXMgW01TRExd?= Microsoft Word Document Management 0 28th Mar 2007 12:17 AM
Can I hide the text boxes when printing? I used text boxes to ove. =?Utf-8?B?SmF6?= Microsoft Word Document Management 1 24th May 2006 12:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.