Results 1 to 4 of 4
  1. #1
    daveofgv is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2011
    Posts
    18

    How to populate one table with data from another?

    Hello everyone -

    I have a quick query question.

    If I have a table (table1) with a so many columns, however, 3 of the columns are "name", "box_number", "storage_location", which there are about 5000 or so records with names already in there - and I have a list of 500 of those names (table2) with box_number and storage_location already defined - how can i use a query to fill in table1 with the box_number and storage_location instead of doing it one by one?

    Hope this makes sense.



    I appreciate your help

    daveofgv

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Use an UPDATE query. Access Help has guidelines on how to do this.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    daveofgv is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2011
    Posts
    18
    Thank you for the reply.....

    I am in the query design.... I added the fields I want to update in Table1 and Table2 (that has the data)....

    the row Update To I need to write the expression.... What expression do I write to update the rows?

    Basically, I need, if name in table2 equals name in table1 then box_number and shelf_location in table2 insert into table 1......

    Thanks

  4. #4
    daveofgv is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2011
    Posts
    18
    Thank you.... I think I figured it out:

    Field: box_number
    Table: Table1
    Update To: [table2].[box_number]
    Criteria: [Table1].[name]=[Table2].[name]

    I ran the query and appeard to work.

    I found it on http://www.techonthenet.com/access/queries/

    This site has a bunch or query help

    Thanks to June7 for guiding me to the update query.

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

Similar Threads

  1. Extract/Populate Data
    By tylerg11 in forum Forms
    Replies: 1
    Last Post: 09-26-2011, 05:54 PM
  2. Replies: 18
    Last Post: 11-09-2010, 02:39 PM
  3. Replies: 0
    Last Post: 05-12-2010, 10:08 PM
  4. populate table w/ external data
    By tlittell in forum Programming
    Replies: 2
    Last Post: 02-20-2010, 08:29 AM
  5. form data will not populate in table
    By bobsakamato in forum Access
    Replies: 1
    Last Post: 09-06-2009, 07:25 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