pass list value to a text box on click event (1 Viewer)

shutzy

Registered User.
Local time
Today, 18:23
Joined
Sep 14, 2011
Messages
775
i want to be able to pass a unique ID from a list box on click to a text box. i know how to do this when opening a new for at a certain record but i want to be able to do it on the same form.

the code i have tried is

"txtOrdersItemsID =" & Me.lstTreatmentHistory

i used this in the run code macro in the on click even of the list box.

can anyone tell me where i am going wrong please.
 

shutzy

Registered User.
Local time
Today, 18:23
Joined
Sep 14, 2011
Messages
775
ive kind of managed to do it.

in macros SetValue
[txtOrdersItemsID]
[lstTreatmentHistory].[ItemData](0)

this does it only once. i would like to be able to click more than once and the text box changes. which event should i put the SetValue to or do i need to expand on that.
 

Users who are viewing this thread

Top Bottom