Is the second form also using the view that's being closed? If so, you probably have its environment's AutoCloseTables = .T. This means it will close the views it opened on its Init(). Setting it .F. should cure the problem.
Not sure what you're seeing with DoForm instruction. Sorry.
Hope that helps,
---J
>Hi All - Using VFP 7.0 and MM 6.1.2. I have a cizobjnolistmaintform with a business object. On the page I also have 2 command buttons, each does a doform to another cizobjmaintenanceform. The second form comes up fine. It has its own business object. When I close out the called form, and return to the original, one of my views is no longer there. I have tried the called form in its own private data session and as a default data session. A second strange thing I noticed is that in the command button with the =doform... control immediately goes to the next instruction. If I put a suspend in after the =doform, the new form shows and then I hit the suspend. I would have thought the suspend would not have happened until I close out the called form. My main proglem though is what is happening that I am losing a view in the original form. Thanks for any help.
>
>Tom Breay
>INFOLUTIONS