Results 1 to 3 of 3
  1. #1
    MoeIndustries is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2015
    Posts
    12

    Showing Zero where feild is blank OR non existant

    Hello, so, it's a little complicated. I have a database that I'm trying to show the results from as a crosstab table. This feeds into my reports.



    The problem is there are some fields which aren't blank but don't exist in the database so the NZ function doesn't work because the field isn't there at all!

    I'll try to clarify. My report shows 2 headings, Unrestricted and Restricted. There are two lines I want to report under these headings, voluntary and non-voluntary income. The database, in two columns, shows this:

    Unrestricted Voluntary 100
    Unrestricted Non-Voluntary 250
    Restricted Non-Voluntary 185



    So my report looks like this:

    Unrestricted Restricted
    Voluntary 100
    Non-Voluntary 250 185



    The problem is, when I total the columns and rows I get 0 because the fact "voluntary restricted" doesn't actually exist throws out the sum formula and the NZ function doesn't work on a non existing field.

    Any suggestions would be AMAZING!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    NZ([field]) as Restricted

  3. #3
    MoeIndustries is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2015
    Posts
    12
    Here's before NZ in the report, then the formula I'm writing then the result.

    Click image for larger version. 

Name:	NZ.jpg 
Views:	6 
Size:	177.8 KB 
ID:	23820

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

Similar Threads

  1. Form keeps showing up blank on open
    By rthakral in forum Forms
    Replies: 3
    Last Post: 09-24-2013, 01:35 PM
  2. Blank Popup form - not showing any controls
    By Williams485 in forum Forms
    Replies: 9
    Last Post: 03-06-2013, 09:20 AM
  3. Combo Box showing Blank Values
    By glen in forum Access
    Replies: 5
    Last Post: 11-24-2012, 09:44 AM
  4. Replies: 3
    Last Post: 12-09-2011, 11:55 AM
  5. Search for Record, create new if not existant
    By asmith in forum Programming
    Replies: 3
    Last Post: 09-28-2010, 11:31 AM

Tags for this Thread

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