Solved

Which declared variable should I use in a crystal report?

Posted on 2008-10-22
2
234 Views
Last Modified: 2012-08-14
I'm working on a report that has that has part #'s and other associated data with the part #.  Some of the parts#'s are also associated with another part and we call that the master part.  For example:
Part 123 is the master part.   Quantity to produce is entered as zero.  
Part 124 is a member part of Part 123.  Quantity to produce is 1000.
Part 125 is a member part of Part 123.  Quantity to produce is 2000.

Part #123 does not have an order quantity.   But part # 124 and 125 do.  I'm trying to add the quantities of part 124 and 125 together and reference back to Part 123, but declaring a variable.  We can't enter a quantity for 123.  What declared variable do I use- while printing records or while reading records.  I would like the report to show "Part 123 Quantity to produce = 3000".

In my table, I have the master part # set up as a field for the member parts.  I can suppress the quantity of 124 and 125 by looking at my table and if the master part # field is not null.  
0
Comment
Question by:sfrisk
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22776724
Two ideas.

First link the table to a copy of itself on
Table1.PartNumer = Table1a.MasterPartNumber

Select records where MasterPartNumber is null.

You can then group by PartNumber
Display the subparts and use a summary to get the quantity for the masterpart.

The second idea.
Use a subreport to calculate the quantity for the master part thenn return the value and display in the group footer

mlmcc
0
 

Author Comment

by:sfrisk
ID: 22779447
mlmcc - Both are better approaches than what I was thinking.  It should work and do what I need it to.  I'll try it tomorrow when I get back to that project.  Thanks for all of your help, you sure know your stuff!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal reports - finding a hidden reference 4 83
Crystal Reports Sub Report 4 93
Crystal Reports last day of month 2 70
Cant attach a pdf to a crystal report 3 34
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 …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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