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

Grouping based on parameter

Status
Not open for further replies.

Jyme

MIS
Apr 28, 2004
29
US
How do I use a parameter to determine the grouping order?..I want to have it so that theres 2 choices, one selection will group the recordset by payertype, payer, costcenter and the other by payertype, costcenter, payer.

thanks
 
Hi,
Create 2 Formulas and
Use If tests to set their value:

It appears that you want
payertype to be the Top group in all cases so just use a standard Insert Group to set it.

Then have 1 formula for Group2
and 1 for Group3 -
Like
@Group2
If parameter = 'CtrFirst'
then
{costcenter} else
{payer}

@Group3
If parameter = 'CtrFirst'
then
{payer} Else
{costcenter}

Insert these formulas instead of the actual fields as the 2 inserted groups.

One caveat: The fields must all be the same datatype..

[profile]



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top