ListBox

scjohn

Registered User.
Local time
Today, 18:18
Joined
Nov 3, 2004
Messages
31
I have a list box that displays different times. Can some one help, how do get the value from the list box that was selected to show in a text box on another form?
Thanks
 
Say your listbox (Listbox1) is on a form called ThisForm, and you have a textbox (Textbox1) on ThatForm.

In the After_Update event of the listbox on ThisForm, place this code:

Forms!ThatForm!Textbox1.Value = Listbox1.Value
 
Last edited:
Thanks for the help

Thanks for the help, I put in the code on the after_Update Event but im recieving errors.
this is my code: Forms!frmNewSample!txtAppointmentTime.Value = List22.Value

this is the error message:
procedure declaration expression does not match description of event or procedure having smae name?

I dont understand what im doing wrong?

John
 
Forms!frmNewSample!txtAppointmentTime = Me.List22.Value
 

Users who are viewing this thread

Back
Top Bottom