Results 1 to 3 of 3
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    update query using a lookup table


    All, using access 2003. I have a table that has city, state and zip field. I also have a table of zipcodes with zip city and state. How can i use an update query to update the city and state fields if I only have the zipcode field filled in?
    Thanks

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    It IS possible to use the information you have to perform the Update but . . .

    Do you really need to have two different tables with BOTH of them having the CIty, State & Zip data in them?
    That causes you to have redundancy in your database - by storing duplicate data in different tables.

    What you COULD do is use queries that pull in the missing data from the City-State_Zip table.

    Is that something you might be able to do - even with your current setup?

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    I have a zipcode table that I use for zipcode lookup for the current zipcodes and it happens to have the city and states. The other table i use for storing the data that I need. I did get it to work by using the update query. I had dlookup on the brain. Thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 02-08-2012, 04:50 PM
  2. Query to lookup relative field from table selection
    By shabbaranks in forum Queries
    Replies: 5
    Last Post: 12-20-2011, 11:12 AM
  3. Replies: 2
    Last Post: 12-20-2011, 07:33 AM
  4. Lookup name in a query on a non-joined table
    By karmacable in forum Queries
    Replies: 7
    Last Post: 09-21-2011, 09:01 AM
  5. Date Lookup in Query for Junction Table
    By Phasma in forum Access
    Replies: 2
    Last Post: 01-21-2011, 03:36 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