Results 1 to 6 of 6
  1. #1
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68

    Applying a Rating in A Form

    hi



    I am trying to find a way of applying a rating based on particular values

    Essentially, I have a scoring matrix which I have a calculation field at the end which totals the score.

    however, what I need now is to apply a rating to this score with the following parameters

    Excellent– score 6
    Good – score 4 or 5
    Satisfactory – score 2 or 3
    Weak – score 0 or 1



    So, if there is a total score of '4' in the Total Score text box, a rating of 'Good' will be shown in the appropriate feel. If there is a total of 6, ;'Excellent' will be displayed.


    I know the long way round, but I know there will be some fairly straightforward code which I dont have a full graps on as of yet


    Again, any help much appreciated


    bagpuss

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Suggest you use Select Case functionality.

    Here is a quick tutorial:

    http://www.techonthenet.com/access/f...anced/case.php

    Alan

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A User Defined Function (UDF) with a Case statement should do it.

  4. #4
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68
    hi

    Just a quick question, have created my case statement. Where do you put it behind, the Grade text box (which is where I want to display the appropriate grading). Is it an event procedure?

    Sorry for ignorance on this

    bagpuss

  5. #5
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68
    Hi all

    once again, thanks for pointing me in the right direction. I have place the case statement underneath each of the individual scoring combo boxes which make up the total score (in the after update). This has cracked it and I now have a functioning Grade text box

    thanks

    bagpus

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could help.

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

Similar Threads

  1. Apply Filter 2 criteria not applying
    By ahightower in forum Forms
    Replies: 4
    Last Post: 07-28-2011, 03:31 PM
  2. Elo rating system - using VB to update cells
    By zeugma in forum Programming
    Replies: 1
    Last Post: 12-02-2010, 10:06 AM
  3. applying a charge routine
    By rbrookes8dec in forum Access
    Replies: 1
    Last Post: 08-08-2010, 11:01 AM
  4. Applying a find/replace function
    By Arr in forum Programming
    Replies: 2
    Last Post: 10-12-2009, 12:28 PM
  5. Applying a filter to a combo box
    By bugchaser in forum Programming
    Replies: 1
    Last Post: 02-20-2009, 02:37 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