Results 1 to 7 of 7
  1. #1
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51

    Unhappy Update Query with a Multi-Value Field


    Yikes! I am trying to import updated records from one DB to my main DB (due to employees entering data onto copies of the database - I now have to merge all of this data into one DB), and I created my update query but am getting the following error: AN UPDATE QUERY CANNOT CONTAIN A MULTI-VALUE FIELD. I do have one multi-value field in my DB. It's a little too late to change that now! I have tens of thousands of records that need to be merged together.

    Please tell me there is a way to get around this issue! Thank you. :-)

    Tanya

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Bing: Access update multi-value field

    Here is one: http://social.msdn.microsoft.com/For...orum=accessdev
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51
    Thank you but I can't write code. I have created a query using the QBE. When I run the query as a select query it works fine and I get the results that I want, but once I change it to an update query, it won't let me as I then get the error.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Third post in that referenced thread shows a query solution.

    You are adding new records so that is an INSERT, not UPDATE.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51
    So I have looked at the thread a few times, and I am still very confused. I also tried to search and just couldn't find an answer that really helped me (I'm never using mutli-valued fields ever again!!).

    QUESTION...is there any way I could change the multi-valued field to something else so I can just get around this issue altogether? What do you do when you need someone to choose more than I item (eg. days of the week, and they can choose more than 1 day of the week...this is my issue, it's a "Best day(s) we can contact you", so they need to be able to choose more than 1 day of the week).

    Thank you!!!
    Tanya

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Can't just change the multi-value field to something else.

    Have to modify db structure. This means making a related child table from the data saved in the multi-value field. Create a query that expands the multi-value field into multiple records and use that as source for the new table. Then delete the multi-value field.

    Only options I know for dynamic parameter for multiple criteria on same field:

    1. manually modify the query

    2. use VBA, review http://allenbrowne.com/ser-50.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    tanyalee123 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    51
    OK thank you June, as always.

    Tanya

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

Similar Threads

  1. Replies: 7
    Last Post: 11-24-2014, 02:11 PM
  2. How to update Multi Value Field via VBA
    By gopherking in forum Programming
    Replies: 6
    Last Post: 07-14-2013, 03:05 AM
  3. Multi Field Query
    By dsthome in forum Queries
    Replies: 10
    Last Post: 03-21-2013, 09:21 PM
  4. Multi-Field Search issues within Query
    By stiracerdude in forum Queries
    Replies: 3
    Last Post: 10-14-2012, 01:04 PM
  5. Replies: 1
    Last Post: 12-16-2010, 10:32 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