Results 1 to 2 of 2
  1. #1
    Jaci is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2014
    Posts
    2

    Help with Calculated Fields


    I have a very simple database that I am creating to capture purchase order information. My fields are basic info such as customer, job number, vendor, etc. Then I have created fields Quanity1, ItemDesc1, Price1, Total1. I have created 8 records in this format with the Total1 field being a calculated field of Quantity1*Price1. I have also created a Grand total field that will add all the calculated Total1-8 fields. I have created a form for data entry that will also be printed at the time of entry to create a hard copy for filing in the job. Currently the Grand Total field will only work if all of the Total fields have data otherwise the Grand Total is blank. There are many cases where we will only order 1 item and I would still like the grand total to be displayed at the bottom of the form. Currently my Grand Total field is total1 + total2 + total3 etc. Can anyone help?

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You need to use the Nz Function. Here is an example.
    Something = Nz(Sum([Payment]),0)

    HTH

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

Similar Threads

  1. calculated fields need help?
    By Roger in forum Access
    Replies: 1
    Last Post: 04-09-2014, 06:58 AM
  2. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  3. Calculated fields
    By FinChase in forum Queries
    Replies: 5
    Last Post: 02-02-2012, 06:12 PM
  4. Calculated fields
    By Madmax in forum Forms
    Replies: 1
    Last Post: 06-17-2011, 08:36 AM
  5. Calculated fields
    By graciemora in forum Forms
    Replies: 1
    Last Post: 02-04-2011, 06:07 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