It looks like your CloseTables() isn't taking effect. Can you check to see if all tables have been closed? And are there any differences between this report and those which work? Check that you are using private datasessions in both etc.
A question: Why do you use this technique? Have you found benefits that I'm unaware of? I've found (this is purely a personal preference) that report cursors that are developed by the calling program and then used by a report with a default datasession with no tables and also no code in the INIT or other methods/events works very smoothly and is easier to keep updated. Code in a report DataEnvironment or INIT() is difficult to find for a programmer new to a project.
Barbara
>I have a report built with the report wizard. In the data environment.init I have the following code:
>
>
this.closetables
>this.cursor1="mytable1"
>this.cursor2="mytable2"
>this.opentables
>
>When I run this report I get the following message:
>Property setting will not take effect until data environment reloaded.
>
>I have the same snippet in other reports and don't get this message. Any help would be appreciated.