Results 1 to 2 of 2
  1. #1
    phd4212 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    4

    Lookup function????

    Hi All,


    I have a table (Equipment_Age) that has Age in the 1st column and Resale_Percentage in the second. I'm developing where the user inputs their car's age and I want it to populate a second box that lists the resale percentage.

    For example if the car was built in 2010 it would reference the Equipment_Age table and for Age = 2 it would return a percentage of X%

    I think this is a dlookup function, but I'm getting confused on syntax

    Thanks in advance!

  2. #2
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254
    phd4212 -

    You could try the following in an unbound textbox control's controlsource property on the same form as the input age textbox -

    =DLookup("[Resale_Percentage]","[Equipment_Age]","[Age]=" & [forms]![yourformname]![inputagetextboxname])

    Hope it helps,

    Jim

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

Similar Threads

  1. Replace Function with Table Lookup
    By smurof in forum Access
    Replies: 1
    Last Post: 07-29-2011, 07:52 PM
  2. Using the Lookup
    By jo15765 in forum Access
    Replies: 5
    Last Post: 11-28-2010, 12:16 PM
  3. Lookup function
    By allykid in forum Programming
    Replies: 2
    Last Post: 11-09-2010, 09:48 AM
  4. lookUp
    By Balen in forum Access
    Replies: 2
    Last Post: 08-08-2010, 02:09 AM
  5. Want function to get current function name
    By Davis DeBard in forum Programming
    Replies: 2
    Last Post: 08-13-2009, 05:02 AM

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