Results 1 to 4 of 4
  1. #1
    Vanz is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12

    Balance amount not show

    Hi all,



    I have created a query based on a two table and created a query to combined the information from the two tables. I have having issue whereby my balance amount is not reflected when the issued quantity = 0. How to reflect the balance qty?

    Formula in the query:

    Balance: Sum([ReceivedQuantity]-[IssuedQuantity])

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    did you turn on the SUMMATION button in the query?
    if either field is null you will get a null result, unless you use NZ(field, 0) to preven this.

  3. #3
    Vanz is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    12
    Quote Originally Posted by ranman256 View Post
    did you turn on the SUMMATION button in the query?
    if either field is null you will get a null result, unless you use NZ(field, 0) to preven this.
    I tried this but my balance is reflected as 0
    Balance: Nz(Sum([ReceivedQuantity]-[IssuedQuantity]),0)Click image for larger version. 

Name:	Untitled.png 
Views:	8 
Size:	3.2 KB 
ID:	44551

  4. #4
    Join Date
    Apr 2017
    Posts
    1,673
    =SUM(ReceivedQuantity,-1*Nz(IssuedQuantity,0))
    or simply
    =ReceivedQuantity - Nz(IssuedQuantity,0)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 10-26-2020, 04:57 PM
  2. Query to extract balance payment amount
    By Alex Motilal in forum Queries
    Replies: 1
    Last Post: 01-11-2020, 04:11 PM
  3. Have a query show the percentage of an amount
    By TrulyVisceral in forum Queries
    Replies: 4
    Last Post: 05-17-2018, 05:52 PM
  4. Replies: 7
    Last Post: 06-15-2017, 02:36 AM
  5. Replies: 1
    Last Post: 03-29-2014, 10:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums