Question : Filter out a calculated formula in group header

I have a crystal report that I am trying to see accounts that have balance changes from one date to another date by the Tax ID. On this report I have 4 group levels:

1. Department
2. Account Type
3. Tax ID
4. Account Number

I have the 1st balance and 2nd balance totals for the Tax ID on GH3 and a formula called @Tim Growth that will calculate the balance change between the totals. I want to now somehow filter the @Tin Growth for the records that are over $100,000 but due to Crystal I cant see this field in the record Expert or group Expert.

I know from reading books that crystal is multi pass and I think this is why I cant get this to work but I am fuzzy on the multi pass process.

Any help would be great!!!

Answer : Filter out a calculated formula in group header

I think you may want to create a console application for that. Just create a new project and select Win32 Console Application. You should then be able to paste you code in the main.cpp or any other main file.

This is a win32 application and therefore you wont be able to see the printf as there wont be any console. Here is how this one may work (though im not whether thats what would like it to be).

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
#include <stdio.h>
#include <string.h>
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 
{
   FILE * pFile;
   char mystring [100];

   pFile = fopen ("C:\\myfile.txt" , "r");
   if (pFile == NULL) 
      ::MessageBox(NULL, "Error opening file", "Application", MB_OK);
   else 
   {
     fgets (mystring , 100 , pFile);
     fclose (pFile);
     if(strstr(mystring, "sergio") == (char*) &mystring[0])
     {
          ::MessageBox(NULL, "matched, do action here!", "Application", MB_OK);
     }
   }
  return 0;
}
Random Solutions  
 
programming4us programming4us