Results 1 to 3 of 3
  1. #1
    PATRICKPBME is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    171

    Finding Phrase in Field

    I have a field which may include the phrase "submission of data". I need to find all records where this phrase is inconcluded in that field. No matter how I set up my query, I get a response that says "record deleted".



    In the field where the phrase would be, in my last atempt I have set up the criteria as:

    Like "*" & [enter phrase] & "*" I then, when prompted, type in submission of data. That is when I get "record deleted".

    ????????

  2. #2
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    try aliasing a field using Instr() and setting the criteria to <>0.

    Code:
    Test: instr(1,[YourFieldName],"submission of data")

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    That is when I get "record deleted"
    You should post more about what's going on before and during the operation that generates the error. I suspect you're trying to delete records based on criteria for some field that was just deleted. I could be wrong, but I don't see what getting the right syntax on your criteria input has to do with the error message.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2018, 07:47 AM
  2. Replies: 6
    Last Post: 10-21-2014, 08:45 AM
  3. Replies: 15
    Last Post: 04-17-2014, 02:21 PM
  4. Replies: 4
    Last Post: 03-29-2012, 07:06 PM
  5. Subsets (not sure if that is the correct phrase)
    By LifeIsBeautiful in forum Queries
    Replies: 1
    Last Post: 10-07-2010, 11:16 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