Solved

Crystal Report Record Selection Formula

Posted on 2013-05-14
4
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 101

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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 …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

734 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