Hi Guys,
Google is not giving me any luck on this, but I am getting
Here is the offending query:
Here is qryQuantity:
Here is qryCostPerPiece:
All underlying data types for cost columns are decimal(18,6), and the quantity is an int (I presume that is what count returns). The two underlying queries run just fine.
I greatly appreciate any assistance.
Thanks,
Alex
Ignorance of certain subjects is a great part of wisdom
Google is not giving me any luck on this, but I am getting
in one of my DB's (access 2k3, access 2k file format).Reserved error (-1038); there is no message for this error
Here is the offending query:
Code:
SELECT qryQuantity.SOURCE_CODE, qryQuantity.QUANTITY*qryCostPerPiece.CPP AS MEDIA_COST
FROM qryQuantity
INNER JOIN qryCostPerPiece ON qryQuantity.LISTS=qryCostPerPiece.LIST;
Here is qryQuantity:
Code:
SELECT SOURCE_INFO.SOURCE_CODE
, SOURCE_INFO.LISTS
, count(MAIL_FILE.FNAME) AS QUANTITY
FROM (MAIL_FILE INNER JOIN SOURCE_INFO ON MAIL_FILE.EASY_REF=SOURCE_INFO.EASY_REF)
INNER JOIN LIST_COST ON SOURCE_INFO.LISTS=LIST_COST.List
GROUP BY SOURCE_INFO.SOURCE_CODE, SOURCE_INFO.LISTS;
Here is qryCostPerPiece:
Code:
SELECT LIST_COST.LIST
, LIST_COST.COST AS COST
, count(MAIL_FILE.FNAME) AS QUANTITY
, LIST_COST.COST/count(MAIL_FILE.FNAME) AS CPP
FROM (MAIL_FILE INNER JOIN SOURCE_INFO ON MAIL_FILE.EASY_REF=SOURCE_INFO.EASY_REF)
INNER JOIN LIST_COST ON SOURCE_INFO.LISTS=LIST_COST.List
GROUP BY LIST_COST.COST, LIST_COST.LIST;
All underlying data types for cost columns are decimal(18,6), and the quantity is an int (I presume that is what count returns). The two underlying queries run just fine.
I greatly appreciate any assistance.
Thanks,
Alex
Ignorance of certain subjects is a great part of wisdom