Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox and textbox issue

Status
Not open for further replies.

bluesage

Programmer
Apr 27, 2004
26
CH
hi,

im trying to do the following but need help:

1.) i have a listbox containing 4 values, lets say bob, frank, sara, tara

2.) i have a textbox with no value, but i want it to show a specific value from the listbox. example:

i want the txtbox to show bob.

3.)

if tried this:

= [listboxname.value(0)]

but doesnt work?

what i need to do is:

im going to have two forms. one with the listbox of names.
on a second form, i want to display the names in different txtboxes. so i would have four in this case, each one showing a different name.

but dont know how?

thanks
 
Not sure what you're trying to do but I believe the property you're looking for is listboxname.itemdata(0).


Randy
 
How are ya bluesage . . . . .
bluesage said:
[blue]2.) i have a textbox with no value, but i want it to show a specific value from the listbox. [purple]example:

i want the txtbox to show bob[/purple].[/blue]
Hmmmmmmmmm . . . . . What is the [blue]criteria[/blue] for determining that it is [blue]bob[/blue] you want from the listbox?

cal.gif
See Ya! . . . . . .
 
Try this after the onclick event of the list box
Forms![FrmName]!NOTES = Forms![FrmName]!NOTES & " " & Forms![Frmwithlistbox]!listboxname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top