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

CR 8.5: How to bring several notes for the same record into 1 field.

Status
Not open for further replies.

dreman

Programmer
Jan 16, 2002
272
US
Using CR 8.5 with SQL.
tables:
Orderhdr -> OrderDetail -> OrderNotes
they are all linked as left outer.
Each OrderDetail record can have several OrderNotes
therefore OrderDetail can have none, 1, 2 or 3 records of notes in OrderNotes
I am constructing a very basic report to print the orders along the notes.
----
[Detail section]:
order#, order date, salesman, eta date, item, description, qty, Unit price, extprice, notes
----
It works fine with no records or 1 rec in orderNotes but the problem arises when there are several recs for the same detail.
In this case if notesOrder has 3 recs, the detail for the same item will be printed 3 times. and also summing the qty and extprice will be triple.
How can I have all 3 rec of notesOrder appear at once.
Please advice, thank you.
dré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top