Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: First instance of a Record = True Post Reply Post New Topic
Author Message
crwzar80
Newbie
Newbie


Joined: 26 May 2014
Location: Australia
Online Status: Offline
Posts: 5
Quote crwzar80 Replybullet Topic: First instance of a Record = True
     Posted: 27 May 2014 at 1:54pm
Hi All, I have a requirement to colour code every second (Detail)line of a sub report based on the charge point and Labour Line of an invoice.
The charge points could be "customer"(Coded Blue), "internal" (Coded Green)or "warranty" (Coded RED).
The invoice can contain "parts" (MAG),"Labour" (TMP) and "descriptions"(DES).
The invoice in the core product can be assembled randomly, depending on what line the user puts on first and differs each time.

Below is a sample of the data.
Product                      Description        ID     Charge      
Job 1                                                 GRP          
95557533310           AIR DUCT LATER MAG     CST      
95510717600           GASKET OIL      MAG     CST      
1                                 Labour          TMP     CST      
1                                 Labour          TMP     CST      
                               FIX ALL THNGS   DES           
4320765                  ADHESIVE FILM   MAG     WAR      
1            LABOUR - check lights           TMP     CST      
1          LABOUR - check brakes           TMP     INT

what I am trying to achieve is to get a "True" or "False" response in a group header, based on the FIRST Labour (TMP) line..
EG: in the example above line 4 is the first Labour Line has an ID of TMP and a Charge of CST therefore would return "True".
if the first Labour line had an ID of TMP and a Charge of INT the result would be "False".

Any help on this formula would be gratefully appreciated.

Regards Wayne            

Edited by crwzar80 - 27 May 2014 at 2:18pm
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum