Solved

Crystal Report DB File Linking

Posted on 2009-05-07
3
232 Views
Last Modified: 2012-05-06
I have 3 inventory tables   - location, master and  cost.  The inventory quantites are in location, the item description is in the master, the current supplier cost is in the cost.  I  link from the  master table to the location to get my quantities. I have 4 locations and the item may or may be stocked at all 4 locations.  So at most I have 1 - 4 location records with quantity on hand.  That link seems to be fine. But when I also link to the cost file, if there is more than 1 supplier cost record (record added when supplier cost changes). I am getting multiple quantity records.  So if I have 1 location with the quantity of 5 and I have to 2 cost records, my quantity sums to 10. When drill into the total it shows that quantity records twice.  If I unlink the cost and run the report, I only have a quantity of 5.  It must have to do with the linking but I cannot come up with the right solution.
0
Comment
Question by:fbhunt
3 Comments
 
LVL 4

Accepted Solution

by:
spangdelta earned 50 total points
ID: 24324796
Are duplicated cost records both 'active', or are the older ones 'Expired'...?
Is there an indicator on the Cost file to tell you which cost is 'active'?
If so, add to your record selection formula a test to select only the 'active' cost.
If not, I can see no way out of your dilemma...
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24325747
I can see where both costs may be active.  For example I bought 3 items from supplier A and 2 from supplier B at different cost.

You need a way to
1.  identify as above the active or current cost
2.  link the items to the correct supplier

Either solution may require a database change or the information may be there and not be obvious.

mlmcc
0
 

Author Comment

by:fbhunt
ID: 24545443
Please close question
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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. …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

896 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

16 Experts available now in Live!

Get 1:1 Help Now