Listbox selections to textbox

mlamont

Registered User.
Local time
Today, 20:12
Joined
Jun 25, 2001
Messages
45
Hi,

I have a listbox with about 10-15 entries, a command button, and a text box. What I would like to do, is when the user selects an entry from the list box and presses the command button it would put the value/text of the listbox entry that is selected into the text box. I have gotten this far, the next part i cannot do.


If the user selects another entry from the listbox and presses the command button, I would like to have that entry appear in the textbox next to the first entry, and so on and so on...

Can anybody help me?
 
Its actually quite simple;

txtList.value = lstOptions.value

I am fairly new to Access, I know there must be a way of properly setting up the code for what I want to do.

Mike
 
Try:

txtList.value = txtList.Value & ", " & lstOptions.value

This will separate the entries with a comma, if you don't want the comma, use

txtList.value = txtList.Value & " " & lstOptions.value
 

Users who are viewing this thread

Back
Top Bottom