Results 1 to 4 of 4
  1. #1
    sfspca1 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    4

    Update query not updating records even though message stating about to update records

    I am trying to update two fields in a master table called Foster Care from another table called FosterCurrent New. The two fields to be updated are Availability (text) and Foster (True/False). I have an Inner Join on the field "Last and First Name from Foster Care and "Teextbox112(Last and First Name) from FosterCurrentNew. When I run the query, I receive the message that 154 records are to be updated, I select Yes. The records are not updated. The checked the fields from both tables, they are the same.

    UPDATE [Foster Care] INNER JOIN [FosterCurrent New] ON [Foster Care].[Last and First Name] = [FosterCurrent New].Textbox112 SET [Foster Care].Foster = [FosterCurrent New].[Foster], [Foster Care].Availability = [FosterCurrent New].[Availability];




    Any help you could provide would be greatly appreciated.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by sfspca1 View Post
    ... The records are not updated. The checked the fields from both tables, they are the same...

    Yes, the code you provided will update Foster Care with the values from the other table where Textbox112 and
    Last and First Name are equal.

  3. #3
    sfspca1 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    4
    Thanks for the help. Checked again and surprise it is working correctly. Problem is solved.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Cool. Nothing was jumping out as for the reason it would not perform quickly. I would guess the slowest part of the whole thing would be the combo retrieving data. However, this happens before the AfterUpdate event.

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

Similar Threads

  1. Replies: 5
    Last Post: 07-09-2015, 11:39 AM
  2. Update Query returning more records than table it is updating
    By frustratedwithaccess in forum Queries
    Replies: 4
    Last Post: 02-07-2015, 04:20 PM
  3. Update records query...new to sql
    By hithere in forum Queries
    Replies: 6
    Last Post: 12-28-2011, 10:23 PM
  4. Update query not updating records
    By toer121 in forum Queries
    Replies: 1
    Last Post: 08-25-2011, 07:08 AM
  5. Update query for numbering the records
    By kumar.dkr in forum Queries
    Replies: 4
    Last Post: 11-24-2010, 06:06 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