Results 1 to 5 of 5
  1. #1
    bubai is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Location
    Dhaka
    Posts
    162

    Formula field not showing result for all rows


    Hello there,
    My Material table has MaterialName and YearlyImportableLimit fields and Import query has MaterialName and ImportedQty fields. I made a query where I deduct ImportedQty from YearlyImportableLimit and the balance is my RemainingImportLimit. But the problem is that not all the material has ImportedQty value. Because some of the materials has not yet imported at all. Hence when I do the deduction, RemainingImportLimit field shows result for only those materials that has value in the ImportedQty field and the rest of the rows remains blank. Whereas those blank rows should have shown the full vlaue for YearlyImportableLimit as there was no deduction.
    Any help please?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try using the Nz() function around the import field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bubai is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Location
    Dhaka
    Posts
    162
    Thanks! I wrapped the furmula with NZ () function, like:
    Code:
    RemainingImportLimit: NZ([YearlyImportableLimit]-[Import]![ImportedQty],[Material]![YearlyImportableLimit])
    And it worked smooth. However I seem not be able to format the Result of this field (eg comma separator). Can't I format this as Currency, Date etc.? Or is it a string value it is returning? Any workaround this.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Using Nz() in the query does cause the textbox formatting to not be available, however, using it in textbox expression the formatting is available. Weird.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bubai is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Location
    Dhaka
    Posts
    162
    Ok. Cheers!

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

Similar Threads

  1. Replies: 3
    Last Post: 04-30-2014, 11:19 AM
  2. Replies: 3
    Last Post: 04-23-2014, 08:22 PM
  3. Error Message Result In Count Formula
    By EHittner in forum Forms
    Replies: 4
    Last Post: 10-22-2013, 10:52 AM
  4. Replies: 2
    Last Post: 06-19-2013, 06:13 AM
  5. Replies: 1
    Last Post: 12-03-2011, 01:26 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