Double Click Listbox to Textbox (1 Viewer)

Liberti

Registered User.
Local time
Today, 05:20
Joined
May 28, 2002
Messages
16
I have created a form that when a user enters a keyword a list of ordinances is listed in the listbox. On the bottom of the form is a textbox. I would like that when a user double clicks an ordinance in the listbox (lstordinance) it is displayed in the textbox (txtordinfo). Because when the ordinance is displayed in the listbox not all of it can be read. Can anyone assist me in finding the code that would do this.

Thank You
Liberti
 

Adrianna

Registered User.
Local time
Today, 00:20
Joined
Oct 16, 2000
Messages
254
Okay.....this is what I think you're asking to do

When the user makes a selection from [lstordinance] you would like for the value selected to appear in the unbound [txtordinfo] box.

All I would do is set the control source for [txtordinfo] to

=[lstordinance]

That way when the user selects something...it will automatically fill in the Test box to match!!

it works..I've done it..and I just tried it again in 2000 and 2002!
 

Liberti

Registered User.
Local time
Today, 05:20
Joined
May 28, 2002
Messages
16
It worked, thank you for the wonderful help.

Thank you,
Liberti
 

Users who are viewing this thread

Top Bottom