Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shared variable from subreport one record behind 1

Status
Not open for further replies.

amoeba102

Programmer
Apr 2, 2002
58
US
I have a subreport named 'Accomodation' that is placed in a group header. It has a shared variable that passes back either "None" or "OK" to the main report. The main report either displays the fields from the subreport (if the shared variable value was "OK") or displays a warning (if the shared variable value was "None").

It works perfectly except for one thing. It is always one record behind. In other words, the second record is being acted upon based on the values that should have applied to the first record, and so on.

I'm sure it's something stupid I'm doing, but I don't see it. Can someone give an assist?
 
It sounds like you haven't got the subreport in a separate group header.

Goto Report>Section Expert click on the group header the sub-report is currently in and click on insert. T=You will now have group header a and b.

Place the subreport in group header a, and put the rest of the items formally in the group header in group header b.

let me know how you get on.....

Reebo
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top