>I have a FORM_A and FORM_B. FORM_A sends a parameter and returns a value. I put the following code in FORM_A command button:
>
>DO FORM FORM_B with parm1 TO parm_return
>
>My FORM_B is suppose to send back a value from a textbox for example
>
>thisform.txtmileage
>
>Where do I put the RETURN statement in FORM_B with this textbox value. I did put it in unload method but it didn't know what thisform.txtmileage was. There must be a way to get the value from textbox on FORM_B back to calling FORM_A form. Does anyone know how to do this?
When the unload method is issued txtmileage is already destroyed. Create a new property in form B (say, mileage) that is filled by valid or lostfocus event of txtmileage. The return statement in form b unload method can safely refer to this new property.
----------------------------------
António Tavares Lopes