>Hello,
>
>Clicking a button on a form calls a method that creates a cursor (with SELECT FROM) which is to be the basis of a report. Somehow the selectted cursor changes to the main form cursor before the report is actually run. After that the report prints correctly. SET STEP after the query *sometimes* shows the cursor changed right after the SELECT !
>
>I suspected a timer might be changing workareas, which only happens once, so I set it's interval to 0 and the problem still occurs.
>
>What else might be causing a sudden unexplained workarea switch?
>
>TIA,
>
>Alex
Do you have a grid on the form? See
Forms with Grids and printing reports FAQ #15515
If it's not broken, fix it until it is.
My Blog