Solved

Which declared variable should I use in a crystal report?

Posted on 2008-10-22
2
235 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
[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
2 Comments
 
LVL 101

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

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. …
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 Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
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…

707 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