That start of the SQL statement reads something like this:
TRANSFORM Sum(tblInvoiceDetail.Quantity) AS SumOfQuantity
Add Nz() around the expression, e.g.:
TRANSFORM Nz(Sum(tblInvoiceDetail.Quantity),0) AS SumOfQuantity
JET probably won't understand the data type corrrectly after that, so I
suggest you use CLng(), CDbl() or CCur() around that expression - depending
if your data is Long, Double, or Currency. Example:
TRANSFORM CCur(Nz(Sum(tblInvoiceDetail.Quantity),0)) AS SumOfQuantity
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.