Re: comparing strings in a query??
From: Douglas J. Steele (NOSPAM_djsteele_at_NOSPAM_canada.com)
Date: 10/28/04
- Next message: Dan Artuso: "Re: comparing strings in a query??"
- Previous message: Allen Browne: "Re: Date query fails when updating from 2000 to 2002 or later"
- In reply to: Ivan Debono: "comparing strings in a query??"
- Next in thread: Ivan Debono: "Re: comparing strings in a query??"
- Reply: Ivan Debono: "Re: comparing strings in a query??"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 05:50:32 -0400
Sorry, but comparisons are very literal. As you say, you're telling it to
look for pkg., and those four characters do not appear in what you're
searching, so there's no way you're going to be able to find it.
If you said to look for pkg (without the period), then
WHERE TextField Like "*pkg*"
would work.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Ivan Debono" <ivanmdeb@hotmail.com> wrote in message news:%23bCZI1MvEHA.1524@TK2MSFTNGP09.phx.gbl... > Hi, > > I need to compare strings in a query. > > I have a table where one text field contains, for example: 'package,pkgs.' > > My criteria (string to compare) is 'pkg.' (notice the dot after pkg!!) > Although my whole string is not found within the text field, 'pkg' matches > with the first 3 letters of 'pkgs'. > > So how will my where clause be, if this is possible??? > > Thanks, > Ivan > >
- Next message: Dan Artuso: "Re: comparing strings in a query??"
- Previous message: Allen Browne: "Re: Date query fails when updating from 2000 to 2002 or later"
- In reply to: Ivan Debono: "comparing strings in a query??"
- Next in thread: Ivan Debono: "Re: comparing strings in a query??"
- Reply: Ivan Debono: "Re: comparing strings in a query??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|