Results 1 to 2 of 2
  1. #1
    hklein is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    15

    conditional update


    Hello, I have a table1 and table2 linked to eachother with an ID fiels. I would like to make an update on table1. if the value of table1.ID exist in the table2, then I would like the table1.field1 to have the value "yes". Could anybody know, how tu build up a query like this? Thank you

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Here is a quick tutorial on update queries

    http://www.youtube.com/watch?v=--PVVLIcbjE

    Join your two tables on the ID. Make the join a Left Join with Table1 your first selection.

    In your criteria for the ID in table 2, set it to Not Null

    Make sure to back up your tables before you begin in case you make a mistake. Update Queries cannot be unwound.

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

Similar Threads

  1. Conditional Update Query
    By TheShabz in forum Queries
    Replies: 6
    Last Post: 01-24-2012, 12:11 AM
  2. Conditional formatting
    By avarusbrightfyre in forum Forms
    Replies: 3
    Last Post: 07-01-2011, 11:18 AM
  3. Replies: 1
    Last Post: 01-22-2011, 12:23 PM
  4. Conditional Summation
    By megabrown in forum Queries
    Replies: 15
    Last Post: 12-08-2010, 06:19 PM
  5. Conditional Update query ...
    By valkyry in forum Access
    Replies: 0
    Last Post: 04-25-2007, 02:04 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