Crystal v8.5
MSSQL
I am listing the inventory locations of each inventory item in each detail line. This works fine until I link a table to it. The table I am linking to it has multiple records for that item for that location which shows individual transactions for that item. What is happening is that when I link the other table to my report and insert fields from the INVHST file I get a detail line for every transaction for that item and location which of course inflates all of my totals. If I remove the table link then I again just get one detail line for each inv item for each location. Is there a way to link the file so this does not happen. My goal is to be able to link to the table, not get multiple lines of duplicate data for each record and then in the table Ihave just linked to pull only one record that matches my criteria.
Example:
[tt]
INVLOC INVHST
|------------| |--------------|
|itemnumber | ======> |itemnumber |
|location | ======> |location |
|qtyonhand | |receiptdate |
|description | |receiptnumber |
|------------| |receiptqty |
|--------------|
[/tt]
Before I link the INVHST table to the INVLOC table and insert any fields my detail looks like this.
[tt]
ITEM # DESCRPT LOCATION QTYONHND RCTDTE RCTQTY
gh1 38273 Widget
det WHRS201 3,245
det WHRS202 3,298
gf1 Total ==> 6,543
[/tt]
If I link the INVHST table to my INVLOC table then as I said for ever record in the INVHST table there is for the item and that location it will duplicate the detail lines that many times.
So if there have been 4 receipts for item #38273 in location WHRS201 and 3 for WHRS202 I will get these results:
[tt]
ITEM # DESCRPT LOCATION QTYONHND RCTDTE RCTQTY
gh1 38273 Widget
det WHRS201 3,245 01/30/01 837
det WHRS201 3,245 03/28/01 472
det WHRS201 3,245 05/15/01 776
det WHRS201 3,245 07/23/01 773
det WHRS202 3,298 03/17/01 998
det WHRS202 3,298 04/16/01 553
det WHRS202 3,298 07/15/01 554
gf1 Total ==> 22,874
[/tt]
Now keep in mind I am only interested in one of the many records in the INVHST table. But I can't even use a formula to pull only that one record I want becaues the moment I link the tables I get the multiple lines of detail. I also have not even inserted any fields such as RCTQTY or RCTDTE yet.
Thanks for any help
Mark
Email: markanas333@hotmail.com
MSSQL
I am listing the inventory locations of each inventory item in each detail line. This works fine until I link a table to it. The table I am linking to it has multiple records for that item for that location which shows individual transactions for that item. What is happening is that when I link the other table to my report and insert fields from the INVHST file I get a detail line for every transaction for that item and location which of course inflates all of my totals. If I remove the table link then I again just get one detail line for each inv item for each location. Is there a way to link the file so this does not happen. My goal is to be able to link to the table, not get multiple lines of duplicate data for each record and then in the table Ihave just linked to pull only one record that matches my criteria.
Example:
[tt]
INVLOC INVHST
|------------| |--------------|
|itemnumber | ======> |itemnumber |
|location | ======> |location |
|qtyonhand | |receiptdate |
|description | |receiptnumber |
|------------| |receiptqty |
|--------------|
[/tt]
Before I link the INVHST table to the INVLOC table and insert any fields my detail looks like this.
[tt]
ITEM # DESCRPT LOCATION QTYONHND RCTDTE RCTQTY
gh1 38273 Widget
det WHRS201 3,245
det WHRS202 3,298
gf1 Total ==> 6,543
[/tt]
If I link the INVHST table to my INVLOC table then as I said for ever record in the INVHST table there is for the item and that location it will duplicate the detail lines that many times.
So if there have been 4 receipts for item #38273 in location WHRS201 and 3 for WHRS202 I will get these results:
[tt]
ITEM # DESCRPT LOCATION QTYONHND RCTDTE RCTQTY
gh1 38273 Widget
det WHRS201 3,245 01/30/01 837
det WHRS201 3,245 03/28/01 472
det WHRS201 3,245 05/15/01 776
det WHRS201 3,245 07/23/01 773
det WHRS202 3,298 03/17/01 998
det WHRS202 3,298 04/16/01 553
det WHRS202 3,298 07/15/01 554
gf1 Total ==> 22,874
[/tt]
Now keep in mind I am only interested in one of the many records in the INVHST table. But I can't even use a formula to pull only that one record I want becaues the moment I link the tables I get the multiple lines of detail. I also have not even inserted any fields such as RCTQTY or RCTDTE yet.
Thanks for any help
Mark
Email: markanas333@hotmail.com