Solved

Which declared variable should I use in a crystal report?

Posted on 2008-10-22
2
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

911 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

26 Experts available now in Live!

Get 1:1 Help Now