*-- test of sharing the data environment *-- between a form and report, *-- to avoid having to spend time duplicating queries *-- *-- in this system, imNeg is the parent of imPrint, *-- in a 1:M relationship public vFPtr *-- open form with reference pointer do form forms\imnegfrm name vFPtr linked *-- move to form's private data session *-- so we can make sure the report is using the same DE set datasession to vFPtr.datasessionid * -- now let the report use the form's data environment select imNeg && probably not necessary -- it's already selected set skip to imPrint && allow multiple children in report *-- add a NOWAIT to examine things from the command window report form reports\imrel_r1 preview select imNeg && just making sure... set skip to && preserve normal behavior in form *-- control returns to form *-- in an actual program, *-- we would also want to return to the same recordCan anyone tell me if this is dangerous?