>Im using a listbox on a modal form to return a value to a
>calling form and it isnt working. When I enter the
>value to a textbox on the form it works fine. How do I
>access the value in the list box place it in the variable
>the modal form is returning?
>
>Chris
You need to store the list's value to a property of
the form. The list won't be there anymore by the
time you hit the unload event.
You can either make the forms property the controll
source or grab it on a change event if the first
will mess up you display.
ThisForm.List1.ControlSource = ThisForm.ReturnValue
In the UNLOAD event:
RETURN ThisForm.ReturnValue
Chris
Chris