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!

Last record in a group 2

Status
Not open for further replies.

IanWaterman

Programmer
Jun 26, 2002
3,511
GB
Use a Running total to count a unique for each record in a group reseting on change of relevant group.

Use a formula
Code:
@Display
If {#RT UniqueField] = count(uniquefield, groupfield) then 
{table.fieldname}
else 
{table.fieldname}&" OR"

Ian

 
Or you could use a formula like this:

if {table.groupfield} <> next({table.groupfield}) then
{table.field} else
{table.field} + " or"

-LB
 
Actually, that should be:

if onlastrecord or
{table.groupfield} <> next({table.groupfield}) then
{table.field} else
{table.field} + " or"


-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top