Results 1 to 2 of 2
  1. #1
    alexjose is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    6

    Update query to set null value lookup field


    I've got a web database on SharePoint to handle inventory. The table I want to update is 'Parts' and the field in that table is 'Package Type'. It is a lookup field that gets its value from another table called 'Packages'. The 'Packages' table only has 4 entries so far.

    What I want to do is update all NULL values in the 'Package Type' field in 'Parts' to 'TO-46' which is in the 'Packages' field for the first entry in the 'Packages table. (See attached pictures)

    Please help. Thank you!Click image for larger version. 

Name:	Tbl1_Parts.jpg 
Views:	5 
Size:	41.0 KB 
ID:	12864Click image for larger version. 

Name:	Tbl2_Packages.jpg 
Views:	3 
Size:	111.7 KB 
ID:	12865

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If the tables are designed like I think,

    UPDATE Parts
    SET [Package Type] = 1
    WHERE [Package Type] Is Null
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. update query using a lookup table
    By slimjen in forum Queries
    Replies: 2
    Last Post: 04-27-2012, 03:46 PM
  2. Query Help - Show field if another field is null
    By lukekonrad in forum Access
    Replies: 1
    Last Post: 03-05-2012, 04:02 PM
  3. Update field1 if Null, if Not Null update field2
    By mfirestorm in forum Queries
    Replies: 2
    Last Post: 12-02-2011, 09:51 AM
  4. table lookup / null field values, help!
    By benjammin in forum Forms
    Replies: 3
    Last Post: 07-27-2011, 01:56 PM
  5. Replies: 5
    Last Post: 08-20-2010, 06:40 AM

Tags for this Thread

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