Results 1 to 5 of 5
  1. #1
    Mossy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3

    Calculated Fields Help

    I'm trying to create a caculated field for a course. The question is basically if column1 value is greater than a certain number then the calculated field should display a rate -500.



    I've tried all the expression builders and looked at common operators and I can't figure out how to do this. Any help would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    The field is set as a Calculated datatype? Sounds like a simple calculation. Show the expression you tried. What happened - error message, nothing, wrong results?
    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.

  3. #3
    Mossy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3
    Quote Originally Posted by June7 View Post
    The field is set as a Calculated datatype? Sounds like a simple calculation. Show the expression you tried. What happened - error message, nothing, wrong results?
    It may sound simple, but I can't figure it out. I've tried proposedrate: [column1]>6 = [column2]-500. I know this probably is really far off but unsure what to do. I don't necessarily want the answer, but maybe some guidance. Should I be using iif

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    Use IIF:

    IIF([column1]>6, [column2]-500, Null)

    or

    IIF([column1]>6, [column2]-500, 0)

    or whatever you want in place of Null or 0
    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.

  5. #5
    Mossy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3
    Thank you very much

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

Similar Threads

  1. Calculated fields
    By Madmax in forum Forms
    Replies: 1
    Last Post: 06-17-2011, 08:36 AM
  2. Calculated fields
    By graciemora in forum Forms
    Replies: 1
    Last Post: 02-04-2011, 06:07 AM
  3. calculated fields
    By nashr1928 in forum Forms
    Replies: 1
    Last Post: 07-21-2010, 04:49 PM
  4. Summing Calculated Fields
    By Zoran in forum Queries
    Replies: 1
    Last Post: 03-31-2010, 01:59 PM
  5. Sum of calculated fields
    By nkuebelbeck in forum Forms
    Replies: 9
    Last Post: 03-12-2010, 01:32 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