Results 1 to 3 of 3
  1. #1
    cement is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    12

    A somehow sophisticated Update Query !

    Hi,



    i have two tables which don't have any relationships and i can not set any for them because of some reasons.

    Table1 has am ID field (numbers) and Table2 records have those ID numbers and they are identical.

    what i want to do is to update the Table2 records which have the same IDs as my Table1 records and update (i.e modify ! ) their content with the content of the corresponding Table1 record (which has the same ID)

    hope i explained well.

    does some one know how could it be done ?
    Thanks in advance,

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    try something like:

    Code:
    UPDATE table2, table1 SET
    
    table2.field = table1.field
    
    WHERE table1.ID = table2.ID

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    received a reputation from OP. marking thread as solved.

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

Similar Threads

  1. How can I update a query using VBA?
    By thestappa in forum Programming
    Replies: 2
    Last Post: 06-28-2010, 04:01 PM
  2. update query
    By dollygg in forum Queries
    Replies: 1
    Last Post: 04-24-2010, 12:32 AM
  3. Update Query
    By Lockrin in forum Queries
    Replies: 7
    Last Post: 04-15-2010, 08:59 AM
  4. Update Query- selective update?
    By stephenaa5 in forum Queries
    Replies: 1
    Last Post: 10-29-2009, 11:15 AM
  5. Update query help!!!
    By GUMUBIBI in forum Queries
    Replies: 4
    Last Post: 09-07-2009, 09:09 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