Results 1 to 5 of 5
  1. #1
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28

    Expressions for calculating Text fields

    Hello,



    I am trying to create an expression that determined by text fields. The field is a PASS for FAIL field. The result needs to =PASS if 70% of the total column is PASS.

    Any ideas? Can this even be done using an expression?

    Dottie

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    You can try the IIF function iif ( condition, value_if_true, value_if_false )
    See here for more http://www.techonthenet.com/access/f...vanced/iif.php

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Calculate PerCentages

    Here is a Demo that will hopefully help you.
    Attached Files Attached Files

  4. #4
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28
    Thank you for your prompt reply. So would I need to create 2 columns for results? I need to find out the total number of PASS in the column to make sure 70% of them are PASS. This number may vary depending on the number of skills attempted.

    I guess I'm not sure what to put for the condition.

    Dottie

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You are asking what the percentage of this is from that! 2 variables. Then if that percentage is 70, then somefield = PASS.
    Correct?
    In the below example, c would equal the percentage,txtpassfail is the display field.


    If c >= 70 Then
    Me.txtpassfail = "PASS"
    Else
    Me.txtpassfail = "FAIL"
    End If
    HTH
    Last edited by burrina; 05-27-2014 at 11:17 AM. Reason: Explanation

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

Similar Threads

  1. Calculating subform fields
    By Tvanduzee in forum Forms
    Replies: 25
    Last Post: 09-17-2012, 06:42 AM
  2. Replies: 8
    Last Post: 07-30-2012, 04:43 PM
  3. Replies: 0
    Last Post: 03-09-2012, 07:04 AM
  4. calculating time fields
    By donnan33 in forum Programming
    Replies: 5
    Last Post: 01-19-2012, 12:15 PM
  5. Issues with Text Box formats and expressions
    By AndrewsPanda in forum Reports
    Replies: 3
    Last Post: 09-28-2011, 11: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