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

Grouping Help

Status
Not open for further replies.

Barrow66

Programmer
Sep 3, 2002
37
0
0
US
I have a report that has column name CurrentVBDate.
I want to populate this column (CurrentVBDate) with data from other columns.
The other columns are PreviousVBDate, NextSequentialVBDate and NextSequentialVBDate.
I am using CR8.5.
Any assistance will be appreciated and thanks in advance for your help.
 
What do you need to populate the Field with? Can you be more specific regarding your data/grouping?

DLC
 
I assume that - PreviousVBDate, NextSequentialVBDate and NextSequentialVBDate are fields within one record and only one is NOT NULL BTW that 2nd and 3rd field are the same...I renamed it "LastSequentialVBDate" for this demonstration

You could group on all of these using the following formula

@Group1

if not isnull(table.PreviousVBDate} then
{table.PreviousVBDate}
else if not isnull(table.NextSequentialVBDate} then
{table.NextSequentialVBDate}
else if not isnull(table.LastSequentialVBDate} then
{table.LastSequentialVBDate};

You should have a default condition in case all were null but that is how you could group them in one group dynamically



Jim Broadbent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top