Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Report Record Selection Formula

Posted on 2013-05-14
4
Medium Priority
?
600 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 101

Accepted Solution

by:
mlmcc earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

885 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