>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
Try this:
Create a property in the calling form to hold a return value. Pass the calling form name as a parm to the called form. Then assign it to a form property (create one if you must).
lcX = thisform.CallingForm + '.RetVal = ' + thisform.listbox.value
&lcX
Now you have returned the value to the calling form. One benifet is your called form does not have to be Modal.
HTH,
Tom