>I am having a problem with my form defaults after i run a report after opening a grid.
>the code I have in the click button for the browse grid:
>
>public nOldrec
>THISFORM.appfindbutton.MousePointer=11
>oAgp = CREATEOBJECT("APPGRIDPICK")
>oAgp.Show()
>report form license.frx preview
>GO nOldRec
>THISFORM.appfindbutton.MousePointer=1
>THISFORM.Refresh()
>
>after this codes executes and I want to move forward within the database with my forward command button I get the error message
>Object X is not found.
>X= is the name of the form.
>Apparently the form object is not getting reset after I run the report, how can I remedy this so it gets reset after the code is run?
>Any help would be appreciated.
>thanks,
>
>Alp Berker
>Systems Analyst
>Conseco Inc.
Could you post the code which actually triggers the error? Also, what is oAgp? Another form?
Edward Pikman
Independent Consultant