|
-
Feb 21st, 2000, 11:39 PM
#1
Thread Starter
New Member
Hi,
I am a beginner at VB, as i am trying to program a database system, my problems is :
Currently i am using ADO method to retrieve my data and i am trying to do a search engine where i can retrieve information using wildcard like eg. to retrieve and view all company name starting with A*. I am able to do this if i am using DAO but i do not know how can i do this if i am using ADO. How to display the query that i have done?
thanks in advance
-
Feb 22nd, 2000, 01:12 AM
#2
Lively Member
Use % as your wildcard, instead of *
-
Feb 22nd, 2000, 12:41 PM
#3
Thread Starter
New Member
thanks alot for the help, it works if i use % instead of *. But now why is it % and not *, since i am able to use * when I am in the Visdata manager to do a query?
Use % as your wildcard, instead of *
-
Feb 23rd, 2000, 04:47 AM
#4
Lively Member
I think it's an ANSI Std SQL conformance issue.
* is the DOS/Windows wildcard.
% is the ANSI SQL wildcard. Most databases use this.
-
Feb 23rd, 2000, 01:51 PM
#5
Guru
Visdata uses DAO as its data access mechanism. In DAO, the * is the wildcard, while in ADO, the % is the wildcard. As John mentioned, % is the ANSI standard...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|