Results 1 to 7 of 7

How To Do An Update Query When You Need To Do ~1000 more "Criteria or"?

  1. #1
    pchanger is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5

    Question How To Do An Update Query When You Need To Do ~1000 more "Criteria or"?

    Hey guys,

    How do I do an Update Query when the "Criteria" I need to search for is around 1,000 unique strings of gibberish.



    I have a list of them in Excel like this:



    I was hoping that I could just paste them all, but it is making me enter them one at a time which is not practical. What is the correct way to do this?

    Sorry if it's a dumb question. I'm new to Access and wasn't able to find anything about it on YouTube. Maybe I'm searching for it the wrong way. :/



    ~Luke

  2. #2
    JoeM is online now VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,567
    I would make a table of them (a one-column table), and simply link this to your main table on this field.
    This would only return the records in your main table that have matches in the new one-column table.
    Using Access 2007
    Proficient in Access, Excel, VBA, and SQL

  3. #3
    pchanger is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5
    Thank you so much! That worked!

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    13,337

  5. #5
    JoeM is online now VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,567
    You are welcome.
    Using Access 2007
    Proficient in Access, Excel, VBA, and SQL

  6. #6
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    7,936
    Welcome to the forum...


    Somethings you should know about naming objects is:
    Object names should be letters and numbers. Do not begin an object name with a number.
    NO spaces, punctuation or special characters (exception is the underscore) in object names.
    Do not use Look up FIELDS in tables, multi-Value fields or Calculated fields in tables.

    A field named:
    - "Price/tag" has a slash - better would be "PriceTag" or "Price_tag".
    - "Amazon Link" has a space - better would be "AmazonLink" or "Amazon_Link"
    HTH
    -----
    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

  7. #7
    pchanger is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5
    Yeah, I messed up with the names. Imported from excel. My bad. Very new to access. haha

    Thanks for all the help guys, seriously!

    ~Luke

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

Similar Threads

  1. Replies: 3
    Last Post: 06-06-2018, 07:26 PM
  2. Replies: 11
    Last Post: 07-14-2017, 10:13 AM
  3. Replies: 1
    Last Post: 03-16-2017, 11:29 AM
  4. Replies: 1
    Last Post: 09-07-2015, 07:00 AM
  5. Passing criteria "NULL" or "IS NOT NULL" to a query
    By SgtSaunders69 in forum Forms
    Replies: 1
    Last Post: 12-24-2011, 01:22 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
  •  
Tech Forums: Microsoft Office Forums