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!

Totals for group members

Status
Not open for further replies.

simma

Programmer
Sep 11, 2001
398
US
Hello I have data something like this

Group A PAT Type----BK
name date type
Pat 01/02/02 BK
Pat 01/03/01 ND
Pat 01/04/00 ND
Group B GAN Type----ND
name date type
Gan 11/02/02 ND
Gan 06/03/01 BK
Gan 01/04/00 ND

The above groups are based on names.I want the number of types.A group is said to be of certain date based on latest DATE.For example the first group is of type BK becos on lastest date its type BK.Now I want the totals of types.I cant group it becos of previous types.Please advice.
Thanks
 
Thanks synapsevampire
I want number of types that are of type BK... I want the total number of types of each group.say two groups of type BK then the total number is 2.The type of group depends on the type on latest date..Hope I made my self clear
Thanks...
Group A PAT Type----BK
name date type
Pat 01/02/02 BK
Pat 01/03/01 ND
Pat 01/04/00 ND
Group B GAN Type----ND
name date type
Gan 11/02/02 ND
Gan 06/03/01 BK
Gan 01/04/00 ND

The above groups are based on names.I want the number of types.A group is said to be of certain date based on latest DATE.For example the first group is of type BK becos on lastest date its type BK.Now I want the totals of types.I cant group it becos of previous types.
 
I found the solution thanks...
I created two formulas

1.t1---groupheader
WhilePrintingRecords;
if OnFirstRecord = false then
if{QryFsv_NodQ.FldApApprType}="BK" then
numberVar RunningTotal:= RunningTotal+1
2.t3 groupfooter
WhilePrintingRecords;
numbervar runningtotal;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top