How to exclude blank field from SUM calculated field (1 Viewer)

BoltV

New member
Local time
Today, 23:25
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: 340
  • Access Photos2.png
    Access Photos2.png
    9.6 KB · Views: 338
  • Access Photos3.png
    Access Photos3.png
    30.1 KB · Views: 316

silentwolf

Active member
Local time
Today, 08:25
Joined
Jun 12, 2009
Messages
565
Hi,

in the Criteria of the Voucher field you add <>""

HTH
 

BoltV

New member
Local time
Today, 23:25
Joined
Oct 19, 2021
Messages
8
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
 

silentwolf

Active member
Local time
Today, 08:25
Joined
Jun 12, 2009
Messages
565
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 ..)
 

theDBguy

I’m here to help
Staff member
Local time
Today, 08:25
Joined
Oct 29, 2018
Messages
21,468
Hi @BoltV. Welcome to AWF.

Can you post a sample db with test data?
 

Users who are viewing this thread

Top Bottom