Results 1 to 2 of 2

Thread: ADO - Select Statement

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148

    Exclamation

    Using the "asterisk" in the 'Like' statement doesn't seem to work in ADO.
    If anyone knows a way around it, let me know, Thanx

    DAO - This works
    strtype = "C*"
    dtaClass.RecordSource = "Select * from TypeDesc where TypeDesc Like '" & strType & "'" & " ORDER BY Index"

    ADO - This doesn't
    strtype = "C*"
    adoSearchRS.Open "Select * from TypeDesc where TypeDesc Like '" & strType & "'" & " ORDER BY Index", db, adOpenStatic, adLockOptimistic

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    Try a percent sign (%) instead of the asterisk.

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