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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to know a value from the NEXT record? 2

Status
Not open for further replies.

mpdinosaur

Programmer
Aug 13, 2003
21
0
0
US
When a group footer is being printed, is ther a way to "know" a value in the next record that's going to print?

I need to increment a value and conditionally turn off a group header based on a value in the next record.

Using CR 8.5 and MS-SQL.

Thanks in advance.

[thumbsup]

MikeTheDinosaur
 
[tt]Next({Table.Field})
[/tt]
That'll give you the value of {Table.Field} for the next row in the data set.

-dave
 
Yep, use the NEXT function:

If next({table.field}) = "Some data" then
"It's Some data"
else
"Not Some Data"

To suppress a section based on this, right click the section and select format section->X 2 next to Suppress

Place something like:

next({table.field}) = "Some data"

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top