Hello Pros,
I created the following query this morning and it gave me the results I wanted. The I added it to another query and now it no longer gives me any values in the onhand field or the onhandextension field. The query qryQOH is a totals query. Here is the SQL of both:
qryQOH:
SELECT [Part Stock].PRTNUM_06, Sum(Nz([QTYOH_06],0)) AS OnHand
FROM [Part Stock]
GROUP BY [Part Stock].PRTNUM_06;
qryProjectedInventory1:
SELECT [Part Master].PRTNUM_01, [Part Master].ONHAND_01, qryQOH.OnHand, ([Cost_01]/[cstcnv_01]) AS Cost, [Part Master].TYPE_01, [Part Master].BOMUOM_01, [Part Master].PMDES1_01, Round(Nz([onhand],0)*[cost],2) AS OnHandExtension
FROM [Part Master] LEFT JOIN qryQOH ON [Part Master].PRTNUM_01 = qryQOH.PRTNUM_06;
I don't have any clue why it stopped working.
Doyce
Posted by: winberry.doyce@con-way.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Tidak ada komentar:
Posting Komentar