?
Solved

* in LIKE clause

Posted on 2000-02-25
2
Medium Priority
?
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Marine earned 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

741 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