Results 1 to 5 of 5
  1. #1
    sizemoreg is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    6

    Update a field with multiple values

    Sorry folks, I have been all over the forum, and cannot find a close answer to my issue. Hopefully you can help me out.



    I have a table with invoices, I need to assign agents to process the invoices, I want to insert their names from a list I have in another table. I've tried update query, I've tried writing the SQL insert into, and I am not being successful, any help would be greatly appreciated

    1st table
    Access table inv
    assigned to invoice #
    1
    2
    3
    4
    5
    6
    7
    2nd table
    Access table agents
    Nancy
    John
    Vicki
    brian


    The results I need
    assigned to invoice #
    Nancy 1
    John 2
    Vicki 3
    brian 4
    Nancy 5
    John 6
    Vicki 7




  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
    Why don't you do normal data entry?

    Otherwise this will require VBA code. If you want code to do this, what are the rules for assigning agents? Just cycle through the agents until all invoices have assignment?
    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
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Are you doing this in the table or are you using a form?
    Hint: you should be using a form. Then you can use a combo box to select the agent.

  4. #4
    sizemoreg is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    6
    Thanks folks, I figured it out. my SQL was, for a better term "bassakwards". I'm still at the novice stage, of access 2007

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What was the solution? How did you accomplish with just a query?
    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.

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

Similar Threads

  1. Find and update multiple values
    By chemthethriller in forum Forms
    Replies: 3
    Last Post: 04-22-2014, 01:15 PM
  2. Replies: 5
    Last Post: 02-20-2013, 03:21 PM
  3. Replacing many values at once in a multiple values checkbox field.
    By ConfusedDatabaseDesigner in forum Forms
    Replies: 2
    Last Post: 07-20-2012, 08:58 AM
  4. Update Query selecting multiple values in one field
    By Zipster1967 in forum Queries
    Replies: 1
    Last Post: 08-15-2011, 12:22 PM
  5. Update query to summarize multiple values
    By ser01 in forum Queries
    Replies: 3
    Last Post: 05-15-2010, 09:38 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