Results 1 to 2 of 2
  1. #1
    chu3w is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2010
    Posts
    3

    Calculating null fields in a form

    I have a main form and a subform. Both of the forms are pulling information from the same query. The query has a month and a revenue field. The main form pull revenue for the month of January and the subform is filtered to pull revenue for february. On the main form I have a text field that will add revenue for both months together. My Problem is if there is no value for February then it will not add the revenue together. I tried using the nz function that looks like this



    =nz([Forms]![MainForm]![Revenue],0) + nz([Forms]![MainForm]![Subform]![Revenue], 0)

    This doesn't work

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,531
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Calculating Dates
    By TC0126 in forum Queries
    Replies: 1
    Last Post: 02-23-2010, 08:13 PM
  2. Replies: 5
    Last Post: 02-10-2010, 12:27 AM
  3. If Form Field is not null then...
    By cotri in forum Forms
    Replies: 5
    Last Post: 01-12-2010, 11:08 AM
  4. Form calculating troubles
    By Ufalufa in forum Access
    Replies: 0
    Last Post: 11-27-2007, 10:36 PM
  5. Replies: 0
    Last Post: 11-17-2006, 09:38 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