Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

How Do You Perform A VLOOKUP In Access?

Discussion in 'Information Technology' started by miztahprofessa, Nov 16, 2005.

  1. miztahprofessa

    Expand Collapse

    I need to perform the equivalent of a vlookup in Access. Is there any way to
    do it?
  2. Loading...

    Similar Threads Forum Date
    Heritage Amritsar To Witness Vintage Performance Of Ragas From Guru Granth Sahib Today History of Sikhism Sep 3, 2013
    Controversial Hazoori Ragi Reportedly Refused To Perform Kirtan At DSP Swaran Ghotna’s Bhog Hard Talk Feb 25, 2013
    India Perform Or Perish; Punjab Govt Tells All Its Employees Breaking News Aug 30, 2012
    Leisure Humble The Poet's First London Performance Business, Lifestyle & Leisure Sep 21, 2011
    Verse Novel Of Hindu-Sikh Romance A Bravura Performance Book Reviews & Editorials Jul 16, 2011

  3. OP
    Douglas J Steele

    Douglas J Steele
    Expand Collapse

    See whether DLookup meets your needs.

    Note, though, that while the display of tables in Access makes them look
    like spreadsheets, they aren't. Using relational databases requires a fairly
    significant mindset change from using spreadsheets. Perhaps if you explained
    what you're trying to do, someone can help you.

    Doug Steele, Microsoft Access MVP
    (no e-mails, please!)

    "miztahprofessa" <miztahprofessa@discussions.microsoft.com> wrote in message
    > I need to perform the equivalent of a vlookup in Access. Is there any way

    > do it?
  4. OP

    Expand Collapse

    miztahprofessa wrote:
    > I need to perform the equivalent of a vlookup in Access. Is there any way to
    > do it?

    IME Excel's "Vlookup" translates to the simplest form of a SELECT SQL

    E.g., suppose you have a database table organized like this:

    Person Preference
    Adam Apples
    Olivia Oranges
    Bert Bananas
    Polly Pomegranates

    In Excel you may have done something like the following to find which
    Preference Olivia has:

    =VLOOKUP('Olivia', <range of data>, 2, False)

    With SQL in a database you do it like this:

    SELECT Preference FROM MyTable WHERE Person = 'Olivia';

    These would return the same value ('Oranges').

    It may not be obvious from this example but there is much more
    flexibility in the database/SQL structure. To name just a few benefits:

    + you can return data from either "side" of the "lookup" column, left or
    right, or from entirely different (but related) tables
    + multiple fields can be returned from the matching record (not just one)
    + you can choose multiple criteria to match across different fields
    + you can aggregate and sort the returned data all in one statement

    Hope this gives you some ideas.
Since you're here... we have a small favor to ask...     Become a Supporter      ::     Make a Contribution     

Share This Page