Solved

Filter Results Question

Posted on 2013-06-03
10
242 Views
Last Modified: 2013-06-24
Hello,
      I have a crystal report I wrote to show me all open work orders in our database. I have it grouped by work order id, then work order release id and then part number id. In the details of the report I have several items. One of them is the operations, (sequences), of the work order. These are the steps that make up the work order. The report runs fine and the data is accurate. I would like to filter this report to only show me the open work orders that have an operation that starts with a specified text. I can use select expert to just show me the operations that start with the specified text but I want to see the other operations for that work order that don’t start with the specified text. Any help would be appreciated.

Thank you
0
Comment
Question by:daskas27
  • 5
  • 5
10 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39216256
If you can do it, build a stored procedure in the database.

You could also build a command to return the items you want.

You can do it in the report through the group select expert.  This is really just a suppression of the groups that don't meet the criteria so if you have summaries they will reflect the suppressed records.

Create a formula

If InStr({YourField},"YourText") > 0 then
    1
Else
    0

Click REPORT --> SELECTION FORMULAS --> GROUP EXPERT
Sum({YourFormula},{OperationsField}) > 0

mlmcc
0
 

Author Comment

by:daskas27
ID: 39226840
No workie.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39227043
How doesn't it work?

mlmcc
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:daskas27
ID: 39271198
Please see the attached file.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271300
You forgot to attach the file

There is a comment field you have to put something into or else the attachment won't be added.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271308
Please see attached, again.
Formula.pdf
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271405
Why do you believe it isn't working?

The string comparison is generally case-sensitive.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271835
Please see the last page of the screen prints. That is as far as I get.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39271863
Sorry.  I didn't [age through it far enough.

WHen you use formulas like

Sum({Field1},{Field2})

Field2 must be one of the groups in the report.  You have 3 groups so those are the only fields you can use.  If you need to use another field for the sum to group on, you need to add it as a group

mlmcc
0
 

Author Closing Comment

by:daskas27
ID: 39271957
Bingo! It works just as I wanted.
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

Suggested Solutions

Title # Comments Views Activity
How to add a total 6 39
Formula to get month and year from date 5 60
Mask on Parameter CR2008 28 51
Crystal Reports Help Memory Variable Not Totalling Cumulatively 2 13
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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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