Solved

Crystal Report Record Selection Formula

Posted on 2013-05-14
4
586 Views
Last Modified: 2013-05-21
I am trying to write a report selecting records based on the criteria that if {Job_Operation.Operation_Service} is = "Saw" then show the following work center/operation  for that job which will include other work centers then just "SAW".   For example Job 123-1 is Saw and Form so I want the report so show both.  Job 123-2 is Laser and Form so I  don't want it to show on the report at all.  Basically it is suppose to show all jobs going through the saw and what the next work center is.  Sorry this is confusing!  Thanks for you help if you were able to follow me :)
0
Comment
Question by:bmessmore
  • 3
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39166485
You will have to build a query in the database, use a command, or use suppression of the groups you don't want.

Command will be something like
SELECT your list of fields
FROM Your Tables
WHERE  RecordIDField IN (SELECT RecordIdFIeld FROM Job_Operation WHERE Job_Operation.Operation_Service = "Saw")

You can also use group selection or suppression

Create a formula
Name - HasSaw
If {Job_Operation.Operation_Service} = "Saw" then
     1
Else
     0

Your Group Selection will be
Sum({@HasSaw},{JobGroupField}) >= 1)

You can suppress the group header/footer and details conditionally
Sum({@HasSaw},{JobGroupField}) = 0

mlmcc
0
 

Author Comment

by:bmessmore
ID: 39185790
I have my group set up by job number.  I have placed the "HasSaw" formula in the group footer but formula is always giving me a zero return even if the group has "Saw" operations.
0
 

Author Comment

by:bmessmore
ID: 39185797
I forgot to sum it never mind. Sorry I am brain fried
0
 

Author Comment

by:bmessmore
ID: 39185817
This worked perfect.  Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Format Field with Dashes 6 52
New and Previous Value in Crystal Report 8 62
Crystal Report detail 15 51
Visual Studio .Net 2012 and Crystal Reports 9 91
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question