At 03:26 PM 8/16/2006 +0100, Dave Crozier wrote:
Malcolm, I've just done that and the current alias it is pointing to in the Page/Report header starts off OK but changes in the detail line to this "other cursor". It is just as though VFP is NOT picking up the correct alis
...
I've had a problem in relation to grids and this type issue. But if you don't have any grids active while you're doing the report, you can probably just ignore the rest of this message. I'm not sure it still exists in VFP (8 or 9). But here is what I've encountered:
If you do a REPORT FORM call while a Grid on a form has focus, the current alias will get switched to the Grid's recordsource after the REPORT FORM gets called. This happens IF the grid has focus at the time the report is invoked. I couldn't find the KB article on MS's web site.
My workaround was to make sure and shift focus off any grid before doing the REPORT FORM command.
This may explain some of the behavior you're seeing. E.g. if you do some steps which end up moving focus off the grid (or off the form containing the grid), the REPORT FORM command would work.
-Charlie _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

