Well can I ask you think a "PUBLIC variable is not recommended for use."
>>First off do you have a seprate data enviorment??
>>if so take it off
>>
>>on form1.command.click (for form2)
>>public pn_recno
>>pn_recno = recno()
>>do form2
>>
>>form2.load
>>select table
>>goto pn_recno
>>release pn_recno
>>
>>
>>>I have created two Forms.
>>>Form1 have Grid on it and a command button for runing Form2.
>>>Form2 have text boxes with same table as Grid on Form1.
>>>When I click on button to run Form2, the data in text boxes are not the same as current record in Grid, they are not refreshing.
>>>How can I make that the text boxes in Form2 refresh with current record as in Grid on Form1?
>
>
>I have tried this, and it works.
>But I have a suggestion. PUBLIC variable is not recommended for use.
>Is there another way to solve this problem, maybe through defining a new property on a form or something like that?