Results 1 to 2 of 2
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    My calculated field data type is not working

    I have a table called 'Balance.' One field is called Tuition and another called Payment (both are currency data types). I have a field called balance which is set as a 'calculated' data type. I have defined this calculation with the Expression builder as follows: [totalTuition]-[totalPayment]



    In the table, I do have values for the Tuition and Payment columns, but the Balance column is not automatically calculating. What am I doing wrong?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    You don't have fields named totalTuition and totalPayment. Can't calculate net balance of tuition and payments that way. Assuming there are multiple records for tuition and payment for each student, must do aggregate Totals (GROUP BY) query.

    Review http://allenbrowne.com/AppInventory.html

    That example uses inventory but the concept is the same - transactions are aggregated to calculate net balance.

    More
    http://msgroups.net/microsoft.public...d-totals/93112
    http://support.microsoft.com/kb/290136
    http://msgroups.net/microsoft.public...in-query/46543
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-31-2013, 04:32 PM
  2. FindFirst Not Working with Decimal Data Type
    By JonMulder in forum Programming
    Replies: 5
    Last Post: 01-22-2013, 01:26 PM
  3. working with attachment field type
    By ricky99 in forum Forms
    Replies: 8
    Last Post: 09-16-2012, 03:59 AM
  4. Replies: 5
    Last Post: 07-18-2011, 06:07 PM
  5. Attachment data type INSERT INTO not working
    By LouisLouis in forum Programming
    Replies: 0
    Last Post: 09-27-2009, 02:23 PM

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