Solved

* in LIKE clause

Posted on 2000-02-25
2
137 Views
Last Modified: 2010-05-02
 WHERE [Name] LIKE 'S*'   works in my Access 2000 database
in VB6 + ADO 2.1 it returns empty recordset, but if I modifie SQL to
WHERE [Name] LIKE 'SecurID' it works fine
what is the issue with * over here
Sincerely,
Matt
0
Comment
Question by:mativare
2 Comments
 
LVL 6

Accepted Solution

by:
Marine earned 50 total points
ID: 2559080
when placing a * it should search all records beging with S its like a wild charecter, try placing the %% sometimes. something like this
LIKE '%S%'
0
 

Expert Comment

by:woottond
ID: 2559629
I agree % is the db wild card of choice
* is used less frequently - and "Thats my final answer Regis"
;)
ché
wootton

(sorry - it had to be said)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question