Results 1 to 3 of 3
  1. #1
    tmartin is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    37

    Unable to set Total Amount to zero for no records

    If you run LaunchMe, a report opens that has several subforms. The one form called New Business has no records in the database when


    executing the query as expected.

    I need to have the form have a value of zero dollars for no records.
    I have tried adding the Nz(xxxxxx,0) to both the form and query attempting to force a value of zero by default but still always
    end up with an error. I have attached an example on the New Business that will not show $0.00 for no records in the database.

    I have also tried adding the Nz(xxxx,0) to the form.

    Thanks
    Tom
    Attached Files Attached Files

  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
    Is this relevant?

    nnz function
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Dhamdard is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2015
    Location
    Afghanistan
    Posts
    7
    Conditional DCount expression can help you with it. For example:

    Expenses:
    =IIf(DCount("*","Daily Expen subReport")>=0,[Control Name],0)

    This expression looks through the query and IF there are 1 or more records, it will display the value of the control you specify. In the control name type the name of that control. If the value is smaller or equal to zero, then the database will display 0 only.

    Thanks,
    Dad

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

Similar Threads

  1. Running Total on Amount for each Month?
    By aellistechsupport in forum Queries
    Replies: 4
    Last Post: 04-24-2014, 01:18 PM
  2. Replies: 2
    Last Post: 04-02-2014, 09:15 AM
  3. total amount
    By sdc1234 in forum Queries
    Replies: 12
    Last Post: 02-19-2014, 03:37 PM
  4. Replies: 3
    Last Post: 01-31-2013, 06:29 PM
  5. Replies: 2
    Last Post: 10-25-2010, 10:45 PM

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