Re: ADO Recordset FIND problem

From: Charles E Finkenbiner (CharlesEF__at__MailandNews.Com)
Date: 05/29/04

  • Next message: Charles E Finkenbiner: "Re: ADO Recordset FIND problem"
    Date: Sat, 29 May 2004 14:16:35 -0500
    
    

    Hi VBDave,

    Yes, I did try that but it still produced an error. Bob's suggestion
    does work.

    Thanks,

    Charles

    On 5/29/2004 8:06 AM, VBDave wrote:
    >
    > ----- Charles E Finkenbiner wrote: -----
    >
    > Hi All,
    >
    > Well, 1 small bug came up to bite me in the rear. When I do a text FIND
    > I enclose the text in single quotes. So, the FIND string would be:
    > Description = 'John MacDonald'. Works great until I ran into trouble.
    > I found that some descriptions have single quotes (could be any special
    > character) in them. So, my FIND string is now: Description = 'John
    > Mc'Donald'. This causes an error that I can not seem to get around. I
    > tried using double quotes instead like, Description = "John Mc'Donald",
    > but I still get the error message.
    >
    > How do you FIND text when the text contains special characters?
    >
    >
    > Thanks for any help,
    >
    > Charles
    >
    > Hi Charles
    >
    > Assuming you are using VBScript, have you tried setting the recordset.find criteria equal to a variable?
    > For example:
    >
    > strDescription = "John Mc'Donald"
    > recordset.find (Description = strDescription, otherArguments)
    >
    > Best,
    > VBDave
    >


  • Next message: Charles E Finkenbiner: "Re: ADO Recordset FIND problem"

    Relevant Pages

    • Re: Random Compiler Errors, again
      ... Thanks Charles - I'll give it a try. ... Did they produce a patch to fix our ... > produced a special build of mshtml.dll to resolve a bug. ... > from dll references to project references. ...
      (microsoft.public.dotnet.general)
    • RE: ADO Recordset FIND problem
      ... but I still get the error message. ... How do you FIND text when the text contains special characters? ... Hi Charles ... recordset.find (Description = strDescription, otherArguments) ...
      (microsoft.public.scripting.vbscript)
    • Re: MICR check writing with Word
      ... Thanks, Charles. ... but there was a bug of some kind resulting ... reading equipment so the magnetic toner is superfolous. ... > You will almost certainly need MICR toner or ink for your printer as well. ...
      (microsoft.public.word.vba.general)
    • Re: attachment not there
      ... There is a small bug that can cause this sometimes. ... You can do a CTRL-F3 on the message to see if in fact there is an attachment. ... > Charles P. Lamb ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)