Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shared variable to return

Status
Not open for further replies.
Jan 21, 2002
112
GB
XTAL 11 SQL 2005

Hello there,
I will attempt to briefly explain my problem -

I have 2 reports.

1 is a list of parts required to make a product. (BOM)
2 is a list of the parts we purchased to make a batch of that product.
They differ in as much as we may have a number of parts in stock, so the second will only list the parts we actually purchased for a particular batch.

I am attempting to do a material variance type report.
I wish to list the parts we have purchased and then a sub-report to show the BOM minus the Parts we have purchased.
Is there a way I can return from a sub report any part that does not match a part in the main report.


If not is there any way I could attempt this.

I hope that makes some sense.

Jack
 
If these are in two separate tables, e.g., BOM and Purch, then you can use a left join FROM BOM TO Purch on PartNo, and add a record selection formula to your report:

isnull({Purch.PartNo})

This would return all BOM Parts that had no corresponding purchases.

-LB
 
Unfortuantely that wont work in this scenario because all parts in the BOM have been purchased at some time - I just need to know about the parts that have been purchased against a particular Sales Order.

I think I need to give you more detailed information to give you any chance of helping me.

I will attempt to get something more helpful together and come back

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top