I generally try to avoid the report DE. My calling path was something like this:
1. util_prog.exe
-- double click in listbox to choose which program to run
2. tortoise.exe
tortoise.prg -- opens tables and calls tortoise.scx
tortoise.scx -- gets filter & command button calls report
The currently open table in the command button of the tortoise.scx was util_prog.dbf Even though tortoise.prg open tables and left a good table selected, for some reason, calling the form switched the currently selected table to the one that was active when util_prog.scx was still running.
I know the rule now, even if I don't understand the reason.
>Were you trying to use tables previously selected or tables opened by your report's data environment?
--Todd Sherman
-Wake Up! Smell the Coffee!