Hello,
I need to verify pricing before importing sales orders into accpac 6.0/MSSQL
I have the vba I need, however having trouble getting the correct SQL query to return rows with information needed by VBA procedure to verify pricing.
Fields needed to verify pricing:
ICPRICP.UNITPRICE,
ICPRICP.DPRICETYPE,
ICPRICP.PRICELIST,
ICPRICP.SALESTART,
ICPRICP.SALEEND,
ICPRIC.PRICESTART,
ICPRIC.PRICEEND,
ICCUPR.FIXPRICE -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.STARTDATE -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.USELOWEST -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.EXPIRE -> IF CONTRACT PRICING EXIST RETURN
The below does not work...
Any help would be great !
I need to verify pricing before importing sales orders into accpac 6.0/MSSQL
I have the vba I need, however having trouble getting the correct SQL query to return rows with information needed by VBA procedure to verify pricing.
Fields needed to verify pricing:
ICPRICP.UNITPRICE,
ICPRICP.DPRICETYPE,
ICPRICP.PRICELIST,
ICPRICP.SALESTART,
ICPRICP.SALEEND,
ICPRIC.PRICESTART,
ICPRIC.PRICEEND,
ICCUPR.FIXPRICE -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.STARTDATE -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.USELOWEST -> IF CONTRACT PRICING EXIST RETURN
ICCUPR.EXPIRE -> IF CONTRACT PRICING EXIST RETURN
The below does not work...
Code:
SELECT ICCUPR.FIXPRICE, ICPRICP.UNITPRICE, ICCUPR.STARTDATE, ICCUPR.USELOWEST, ICCUPR.EXPIRE, ICPRICP.DPRICETYPE, ICPRICP.PRICELIST,
ICPRICP.SALESTART, ICPRICP.SALEEND, ICPRIC.PRICESTART, ICPRIC.PRICEEND, ARCSP.IDCUST, ARCSP.IDCUSTSHPT, ICPRICP.ITEMNO
FROM ARCSP LEFT OUTER JOIN
ICCUPR ON ARCSP.IDCUST = ICCUPR.CUSTNO LEFT OUTER JOIN
ICPRICP ON ICPRICP.ITEMNO = ICCUPR.ITEMNO AND ARCSP.PRICLIST = ICPRICP.PRICELIST LEFT OUTER JOIN
ICPRIC ON ICPRIC.PRICELIST = ICCUPR.PRICELIST AND ICPRICP.ITEMNO = ICPRIC.ITEMNO AND ICPRICP.PRICELIST = ICPRIC.PRICELIST
WHERE (ARCSP.IDCUST = '11647') AND (ICPRICP.ITEMNO = '104884')
ORDER BY ICPRICP.DPRICETYPE