Results 1 to 3 of 3
  1. #1
    Eddie is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2014
    Location
    Glasgow
    Posts
    2

    Vlookup equivalent in Access

    I have a table that has a column with 2.5M postcodes and another of the columns has an LSOA code (table 1).

    In another table I uploaded a list of 3000 postcodes (in the same format) which I need to identify the corresponding LSOA code. (table2)



    In excel I would simply use =Vlookup(b1,table1 a1:c2500000,3,false) and this would return the corresponding LSOA codes required.

    How do I do a similar task in Access. I have hardly ever used access in my life so any help or advice would need to be idiot proof

    could anyone tell me how to write a query I could call on each time I get a new list of postcodes to match up with LSOA codes.

    Eddie

  2. #2
    ButtonMoon is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2013
    Posts
    17
    What you need is called a JOIN. Try something like this:

    SELECT Table2.PostCode, Table1.LSOACode
    FROM Table2
    LEFT OUTER JOIN Table1
    ON Table1.PostCode = Table2.PostCode;

  3. #3
    Eddie is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2014
    Location
    Glasgow
    Posts
    2
    Got it, that seems to work now, I think I may have had formatting issues earlier also.

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

Similar Threads

  1. Generate Scripts equivalent for MS-Access
    By xfp39024 in forum Access
    Replies: 1
    Last Post: 07-13-2013, 04:31 PM
  2. VLookup function in Access?
    By mveda2004 in forum Queries
    Replies: 2
    Last Post: 02-25-2013, 09:42 PM
  3. VLookup? in Access 2010
    By Lazor78 in forum Database Design
    Replies: 1
    Last Post: 07-25-2012, 03:34 AM
  4. Vlookup in Access with SQL
    By jogunjobi in forum Queries
    Replies: 1
    Last Post: 01-30-2012, 07:25 PM
  5. Vlookup function in access
    By rici7 in forum Forms
    Replies: 1
    Last Post: 10-16-2010, 04:41 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