Results 1 to 3 of 3
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    uodate query

    Hi

    just want to clarify my method if I may

    I have two tables one has 39203 records the other 38754 records

    I want to update one field from the the smaller table to the larger

    where the following fields are equal:

    mlink.plot,graveno,forname,surname

    I tried to create an update query but the wizard only seems to allow for one matching criteria

    I created this code but it does not appear to work



    UPDATE tblDeceased SET tblDeceased.Notes = [tblGraves]![Notes]
    WHERE (((tblDeceased.Mlink)=[tblGraves]![MLink]) AND ((tblDeceased.Plot)=[tblGraves]![Plot]) AND ((tblDeceased.GraveNo)=[tblGraves]![GraveNo]) AND ((tblDeceased.Forenames)=[tblGraves]![Forenames]) AND ((tblDeceased.Surname)=[tblGraves]![Surname]));[/CODE]


    it asks for a perameter tblGraves!Notes

    Is my method wrong?

    thanks

    Ian

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Sometimes that many joins won't work like you think.
    Start removing joins and run (but don't confirm yes to the update)
    this will show where the problem is.

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Usually, if you want to update one table from another, you use a JOIN in there somewhere.
    See: http://www.techonthenet.com/sql/update.php

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

Similar Threads

  1. Uodate Query Help
    By armyofdux in forum Queries
    Replies: 1
    Last Post: 03-20-2015, 04: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