Results 1 to 2 of 2
  1. #1
    borge is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    1

    Some kind of lookup query

    Hi,

    I am an Access novice and need help please.

    I have two tables.

    One has all UK postcodes and related categories.

    The second has 5,000 postcodes.

    For all of the postcodes in table 2, I want to look up the category in table one, appending these as an additional column.

    I have no idea how to do this and I am looking for someone to give me simple instructions.

    Can anyone help?

    Thanks,
    George

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Try this:
    Code:
    Select table2.postcode, table1.postcode, table1.category
    From table2 LEFT Join table1 on table2.postcode = table1.postcode;
    Change your table and field names where appropriate

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

Similar Threads

  1. Replies: 2
    Last Post: 08-17-2011, 03:02 AM
  2. how to make this kind of tables
    By engmsosman in forum Access
    Replies: 2
    Last Post: 01-12-2011, 10:34 AM
  3. how to make this kind of tables
    By engmsosman in forum Database Design
    Replies: 0
    Last Post: 01-12-2011, 08:13 AM
  4. Replies: 1
    Last Post: 09-09-2010, 04:40 PM
  5. What kind of query do I need?
    By cowboy in forum Queries
    Replies: 1
    Last Post: 02-17-2010, 04:09 PM

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