Re: Help With Field Searching Using Wildcards

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Andy wrote:
Hi Gang

I have a small database application where the user can search
different fields. They select what they want to search on and enter a
value to search on. For example

They select part number and enter "123" into the search field.

This searches the database for that field with LIKE '%123%'.

What I want the user to be able to do is add wildcards to the search.
For example

They select the part description field and enter "Dohicky*123" or
"Dohicky?123"

I want the search to process the wildcards as you would expect. What
is the easiest way to do this?

The same way. Only have your users use the ODBC wildcards (% and _) not
the Jet wildcards
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: rs.RecortCount = -1 ???? Help! emergency problem
    ... using Query Builder), you need to use the Jet wildcards. ... wildcards when passing the sql to the database engine. ... Please reply to the newsgroup. ...
    (microsoft.public.scripting.vbscript)
  • Re: Adding To A Recordset
    ... Andy wrote: ... > The SELECT with the UNION clause works the best for me here and it ... We cannot get more specific without knowing what database you are using. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)
  • RE: Restore public folders and companyweb
    ... Thank you for posting in the SBS newsgroup. ... I understand that the Public Folder Store ... database cannot be mounted due to integrity problems, ...
    (microsoft.public.windows.server.sbs)
  • RE: Companyweb caanot load
    ... Welcome to SBS newsgroup. ... Check the database connection ... As you could not access the companyweb any more, ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: Scecli and jet database event 1005 and 1202 repeating
    ... This issue occurs if the local Group Policy database file is corrupt. ... Microsoft CSS Online Newsgroup Support ... Open the %SystemRoot%\Security folder, create a new folder, and then ...
    (microsoft.public.windows.server.sbs)