Results 1 to 2 of 2
  1. #1
    jtinjr is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    1

    Using Lookup to Create a new Field


    Hi,

    I am using a database to track student test scores. In this database raw scores are entered, but I would like to be able to calculate the scale score through looking up the scale score in another table.

    Right now I have a table designed for entry of raw scores and a static table used just keep track of how to convert the scores to scale scores. I would like to automate the calculation of scale scores.

    For example a student score of 28 on test form A is entered into a the raw test score table; I would like to have a scale score field created automatically through looking up the score in the static scale score table.

    I know how to do this in Excell using VLOOKUP, but cannot figure this out in Access. Can someone help me or point me to a place where I can learn more about the lookup function in access

    Thanks

    JT

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    What it sounds like you need is a scale score field in the actual table. Put onein, leave the records blank, and when you enter the raw score into your form, put something simliar to this in the AFTER UPDATE event of that box:
    Code:
    me.ScaleScore = _
       dlookup("ScaleScoreField", "ScaleScoreTable", _
               "[RawScore] = " & me.RawScore)
    what that does is use that Raw Score on the form to lookup the corresponding scale score record in that table (assuming you are storing it in a different table).

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

Similar Threads

  1. Auto fill a field from multiple lookup
    By shahemaan in forum Forms
    Replies: 4
    Last Post: 06-13-2014, 04:00 PM
  2. Lookup column relating items in same field
    By rmroberts76 in forum Access
    Replies: 8
    Last Post: 06-05-2010, 07:41 PM
  3. Replies: 3
    Last Post: 04-26-2010, 11:38 AM
  4. Using tbale field in Lookup Wizard
    By dotancohen in forum Database Design
    Replies: 5
    Last Post: 12-10-2009, 02:54 AM
  5. Replies: 5
    Last Post: 06-17-2009, 02:18 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