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

    How to get the final letter grade of my students letter grades in MS access

    Hi guys! im having a problem in making the Expression or Formula on how to get the final letter grade of my records / data students letter grades. all my students grades are all in Letter form.



    pls help!

    thanks and God bless!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Well, is the 'final' determined by a date value? You want to retrieve record where date equals the maximum date? Maybe this will help:
    http://allenbrowne.com/subquery-01.html
    Review the section Top n Records Per Group.

    An alternative is to use DMax, something like:

    SELECT * FROM table WHERE datefield=DMax("datefield", "table","StudentID=" & [StudentID])
    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
    erbrntos is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    3
    I am directly recording the data through letter grades . and im using B=74 and below
    d=75-79; AP= 80-84; P=85-89 ; A=90 and above...to give letter grades to my students.


    pls help me to create an expression or fornula that will get the average letter grade of my list of letter grades in Query or form

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want an average of letters? Need to assign each letter a number value then average the numbers and convert back to letter. Create a field in query with expression to convert letter grades.

    GradeNumber: Switch([Grade]="A",5,[Grade]="P",4,[Grade]="AP",3,[Grade]="D",2,[Grade]="B",1)

    Then you can use that constructed field in Avg aggregate calculation. Create a report and in textboxes use expressions to convert the average value back to letter.

    tbxAvg
    =Round(Avg([GradeNumber]),0)

    tbxLetter
    =Choose(tbxAvg,"A","P","AP","D","B")
    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
    erbrntos is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    3
    it works!!!!
    thanks a lot!

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

Similar Threads

  1. Replies: 0
    Last Post: 01-20-2011, 01:24 PM
  2. filter name by letter
    By kbremner in forum Programming
    Replies: 3
    Last Post: 10-30-2010, 07:48 PM
  3. Replies: 2
    Last Post: 08-03-2010, 02:47 PM
  4. Checking for trailing letter
    By jgelpi16 in forum Queries
    Replies: 2
    Last Post: 03-23-2010, 09:27 AM
  5. From letter from a report
    By LANCE in forum Reports
    Replies: 4
    Last Post: 07-04-2009, 09:32 AM

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