Solved

Crystal Report Record Selection Formula

Posted on 2013-05-14
4
585 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

805 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