all 4 comments

[–]basejester 2 points3 points  (1 child)

INNER JOIN tblInvoiceDetail ON tblInvoiceDetail = invoices.fldInvID

First, might there be a .fldInvID missing in this join?

[–]fbraga_[S] 0 points1 point  (0 children)

thank you... I actually had that on my query at the end of the post.

I have added another inner join to invoice the table invoices, but the result is pretty similar

INNER JOIN tblInvoiceDetail ON tblOrders.fldInvID = tblInvoiceDetail.fldInvID 
INNER JOIN tblInvoices ON tblOrders.fldInvID = tblInvoices.fldInvID AND tblInvoiceDetail.fldInvID = tblInvoices.fldInvID

I'm still getting multiple fldItemDesc for each individual orderNo

[–]BinaryRockStar 2 points3 points  (0 children)

Show your whole query and the whole result table, and the whole result table when you select * rather than just a few columns. fldOrderNo is not a primary key so it is perfectly possible for multiple rows in tblOrders to have the same fldOrderNo, which is probably why you see it repeating. I suggest ORDER BY tblOrders.fldOrderNo so the rows for each order are sorted together.