Solved

Which declared variable should I use in a crystal report?

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

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.

Question has a verified solution.

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

Suggested Solutions

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. …
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

806 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