Results 1 to 2 of 2
  1. #1
    ideasfactory is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    6

    Help Multi value field queries not working (Update or Insert)

    Hi,

    I am trying to update a multi value field Test_Assigned in Table B with the ID field from TableA. The TableB Assigned field and TableA Name field contain join data, there are records that do not have data in TableB Assigned so I have selected record 2323 to test.

    When I run the following query record 2323 is not updated, please help correct the query.



    UPDATE TableB INNER JOIN TableA
    ON [TableB].[Assigned] = [TableA].[Name]
    SET [TableB].[Test_Assigned].[Value] = [TableA].[ID]
    WHERE ([TableB].[UID] = 2323);

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    What is a multi value field? Are you entering multiple values separated by a comma into a single field or are you using a lookup field at the table level?

    What happens if you assign an index number to your field you are trying to update? Also, .Value is used in VBA, not SQL

    UPDATE TableB INNER JOIN TableA
    ON [TableB].[Assigned] = [TableA].[Name]
    SET [TableB].[Test_Assigned] = 1
    WHERE ([TableB].[UID] = 2323);

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

Similar Threads

  1. Update, delete and insert queries between two tables
    By ideasfactory in forum Queries
    Replies: 5
    Last Post: 05-19-2015, 08:25 AM
  2. Queries Field Join of URL not working
    By Arnold in forum Queries
    Replies: 18
    Last Post: 08-15-2014, 10:30 AM
  3. How to update Multi Value Field via VBA
    By gopherking in forum Programming
    Replies: 6
    Last Post: 07-14-2013, 03:05 AM
  4. Multi-Field Search Query not working
    By omair1051992 in forum Queries
    Replies: 16
    Last Post: 06-19-2012, 05:46 AM
  5. Working on an SQL Insert / Update combined
    By robsworld78 in forum Programming
    Replies: 0
    Last Post: 02-23-2012, 10:24 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