How to exclude blank field from SUM calculated field

BoltV

New member
Local time
Tomorrow, 05:52
Joined
Oct 19, 2021
Messages
8
Hi,

Hope someone can help.

I would like to sum up the records that has VoucherNumber group by VendorName. Ignore or excludes the ones without VoucherName. In this case, the query should only show this result with VoucherNumber
Bob T with total of 1100.00,
Kay C with total of 400.00
Rex M with total of 700.00

I have attached screenshot of my query.
 

Attachments

  • Access Photos.png
    Access Photos.png
    69.6 KB · Views: 386
  • Access Photos2.png
    Access Photos2.png
    9.6 KB · Views: 382
  • Access Photos3.png
    Access Photos3.png
    30.1 KB · Views: 355
Hi Silentwolf,

It did filter out the blank VoucherNumber field (attached photo), however I'd also like to SUM the PurchaseInvoiceAmount group by VendorName.
Access Photos4.png
 
Hi,

ok well I need to pass on that one .. never used it but what about sum function?

Otherwise someone here I am sure knows the secret to that problem ..)
 
Hi @BoltV. Welcome to AWF.

Can you post a sample db with test data?
 

Users who are viewing this thread

Back
Top Bottom