Results 1 to 3 of 3
  1. #1
    Kristina is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    1

    Calculated data field on table not showing up on table or reports

    I have created a pretty basic database, more or less self taught after an MS Office overview course for MS 2007. There is a field with a "calculated" data type, with the expression put in that adds a couple of other columns in the table together. I am not getting syntax error messages on the expression, but in the table and reports, the calculated data field is blank if I do not populate the columns with a 0 when not applicable.



    Can anyone tell me how to get the total to show up when not all columns apply to the equation?


    For clarification, my calculated column for "Gross Tuition" is tuition + 5-day room and board + 7-day room and board - tuition adjustments - scholarships......not all records have one or either board or adjustments and/or scholarships. When these fields are blank, the assumption is they are =0. Is this just a syntax issue? If so, please help.
    Thank you.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if that's your expression there are a lot of problems if you're using hyphens (-) in your field names it may be trying to evaulate that as a subtraction rather than a single field so your expression would be something like:

    Gross Tuition: [Tuition] + nz([5-day room and board],0) + nz([7-day room and board],0) - nz([tuition adjustments], 0) - nz([scholarships],0)

    The NZ function makes any missing value a 0

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Advise not to use spaces or special characters or punctuation (underscore is exception) in names nor reserved words as names.

    Better would be 7_Day_Room_and_Board or 7DayRoomAndBoard
    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: 06-26-2012, 02:54 PM
  2. Calculated Field in a table 2010
    By JMac in forum Programming
    Replies: 5
    Last Post: 05-07-2012, 05:49 PM
  3. Calculated Field not showing
    By imintrouble in forum Access
    Replies: 2
    Last Post: 02-09-2012, 03:14 PM
  4. Calculated field for table not form
    By cheyanne in forum Access
    Replies: 1
    Last Post: 01-27-2012, 07:29 AM
  5. Table showing ID instead of data
    By shaha in forum Forms
    Replies: 10
    Last Post: 10-20-2011, 05:14 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