Results 1 to 5 of 5

Thread: help needed....

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    singapore
    Posts
    4

    Post

    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

  2. #2
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    Use % as your wildcard, instead of *

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    singapore
    Posts
    4

    Post

    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 *


  4. #4
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    I think it's an ANSI Std SQL conformance issue.

    * is the DOS/Windows wildcard.

    % is the ANSI SQL wildcard. Most databases use this.

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    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
  •  



Click Here to Expand Forum to Full Width