Solved

Crystal Report Record Selection Formula

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now