Results 1 to 2 of 2
  1. #1
    Zipster1967 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    May 2006
    Location
    Wisconsin
    Posts
    19

    Update Query selecting multiple values in one field

    I have a table that contains a location field which is numeric that represents the county of the record. I want to update the Zone field so that different counties i,e, numbers are given different zone numbers. Say I want to update the Zone field to 1 in all the records where the infocode (which is the county code numeric) is equal to any of the following values 6,17,46,47, 55 What is the easiest way to build this query?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well the way you implement it in the end will depend on whether this is a 1 time thing by you the administrator - or a feature that the nontechnical user will do regularly; but having said that the concept is the same:

    1st make a query that collects the right records to be changed. In your example it is a query with OR between your values (or put them on separate rows in query design). Sanity check that this is working ok and name/save it as: ToChange query

    Then make a select query using ToChange as your source in query design - and then make it into an Update Query. At this point add the field that you want to update - and enter in the value you want to use.

    An Access textbook will have examples of Update Queries - you should be sure to have one.

    Hope this helps.

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

Similar Threads

  1. Selecting multiple values to be used in a report.
    By mnsemple83 in forum Reports
    Replies: 1
    Last Post: 08-12-2011, 05:10 PM
  2. Update query to summarize multiple values
    By ser01 in forum Queries
    Replies: 3
    Last Post: 05-15-2010, 09:38 AM
  3. Replies: 1
    Last Post: 02-03-2010, 09:17 PM
  4. query field with multiple values
    By mknowles in forum Queries
    Replies: 1
    Last Post: 11-24-2009, 11:31 AM
  5. Query multiple values in a field
    By JAYgarti in forum Access
    Replies: 0
    Last Post: 07-09-2009, 09:52 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