Results 1 to 4 of 4
  1. #1
    dsegu is offline Novice
    Windows 8 Access 2003
    Join Date
    Aug 2014
    Posts
    5

    Update Query

    Hello,



    I am looking to create an update query that searches for key words in a comment cell using "is like" and updates the content of the cell with just that keyword.

    Any thoughts on how to create this query? I open to suggestions if there are better ways to do this.

    Thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Please show an example of
    a) what would search for, and
    b) what you would update the cell to.

    Cell is a spreadsheet term, not used in Access/database.

  3. #3
    dsegu is offline Novice
    Windows 8 Access 2003
    Join Date
    Aug 2014
    Posts
    5
    Quote Originally Posted by orange View Post
    Please show an example of
    a) what would search for, and
    b) what you would update the cell to.

    Cell is a spreadsheet term, not used in Access/database.


    Hello,

    Some examples of what is currently in the field: 1) Customer stated she was not sure how to add her offer ($.20 Gas Reward with purchase of $20 or more).


    2)
    The store called about a free offer not working at the store.


    In these two cases, I would like to search for the word "gas" and "fuel" and "free"

    The comment field for example number one would be updated to read "gas", the comment field in for example number two would be updated to read "free"


    There will be more key words which I have not decided on yet. I am looking for a trend in the comments.

    Thank you!

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You could try something like the following in the sql view of query wizard.
    You'd have to change the table and field name accordingly to match your database.

    Code:
    Select * from YourTable
    Where 
    Commentfield like "* gas *"  Or
    Commentfield like "* free *"  Or
    Commentfield like "* fuel *"  

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

Similar Threads

  1. Replies: 3
    Last Post: 05-27-2014, 09:31 AM
  2. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  3. Replies: 1
    Last Post: 05-17-2013, 12:53 PM
  4. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  5. Replies: 4
    Last Post: 11-10-2011, 03:41 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