Results 1 to 2 of 2
  1. #1
    ed in aus is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    1

    2 table update query

    Hi,



    Have 2 tables and want to update the suburb field from 1 table to another, however when I run the code the table does not update

    There are about 40k records to be updated

    SQL code -

    UPDATE TblMaster
    INNER JOIN TblSub_State_Country ON TblMaster.Email = TblSub_State_Country.Email
    SET TblMaster.suburb = [TblSub_State_Country].[suburb];

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    1. if you temporarily change to a select query - are records returned? i.e. can you confirm the join is working as expected?
    2. do the two suburb fields have the same datatype and properties (i.e. both long or text of the same length)
    3. and when you say 'does not update' - do you get a report saying '40000 records not updated because...'

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

Similar Threads

  1. Replies: 4
    Last Post: 04-27-2016, 04:36 PM
  2. Replies: 1
    Last Post: 05-17-2013, 12:53 PM
  3. Update query won't update table
    By bonesie in forum Access
    Replies: 6
    Last Post: 01-15-2013, 05:22 PM
  4. Replies: 6
    Last Post: 05-10-2012, 08:20 PM
  5. Replies: 1
    Last Post: 02-08-2012, 04:50 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