Results 1 to 4 of 4
  1. #1
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38

    # error of text box when summing a total of column in access 2007

    Hi all,


    I have a sub report .I'm trying to sum a column values and put the result in a text box. In the control source of the text box m I'm using the following expression
    Code:
    =Sum ([total])
    , where total is the name of the column that i want to sum it up. The problem is the result of the text box is
    Code:
    # error
    any help please ?
    many thanks.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Do any of the controls possible have Null values? Try using the Nz function for those controls. Example:
    Nz([ID],0)

    HTH

  3. #3
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38
    Quote Originally Posted by burrina View Post
    Do any of the controls possible have Null values? Try using the Nz function for those controls. Example:
    Burrina,
    HTH
    Can you help me how to use Nz function please ?

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Here is an Example on a Report: You could also simply use the Nz function in your Reports Data Source,i.e. Query.

    Order Totals: Nz([Line Item Totals])+Nz([Taxes])+Nz([FreightCharge])
    =Nz(Sum([Payment]),0)
    HTH

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

Similar Threads

  1. Replies: 4
    Last Post: 09-04-2013, 06:40 AM
  2. Replies: 8
    Last Post: 04-29-2013, 12:11 PM
  3. Replies: 1
    Last Post: 02-04-2013, 05:52 PM
  4. Need help regarding forms and 'summing a total'.
    By JackCampion in forum Forms
    Replies: 2
    Last Post: 09-17-2012, 05:03 PM
  5. Total Column Calculating Error
    By joannakf in forum Queries
    Replies: 3
    Last Post: 02-10-2012, 11:17 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