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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking multiple tables - duplicate record problem

Status
Not open for further replies.

mollie

IS-IT--Management
Jan 6, 2002
27
US
Hi -

I'm trying to create a report that uses an item file an invoice file and an open order file. I link from the item file to invoice file and from item file to open order file. I have 2 detail lines (one invoice/ one for orders). I'm getting tripped up because it doesn't skip if there is no record for a specific item. So, a line might show up for an open order, but in reality it's not existent. I've tried left and right joins, but no luck. Any tips would be appreciated.

Also - any ideas on how to have current and history files on the same report? Is it the same logic? (meaning I would want a current invoice and a history invoice file to be read on same report).

Thanks a lot!
 
Well, just a guess here, but if you have the item number from the item file, every item will show up regardless if it is in the open order file or not, even if the open order file is blank.

Use the Item # from the Open Order line file instead. An alternative is to setup a record selection formula:

Not Isnull({OpenOrders.ItemNumber})

Which would exclude records with no open orders. Software Support for Sage Mas90, Macola, Crystal Reports, Goldmine and MS Office
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top