Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upper case & lower case?

Status
Not open for further replies.

bros

Programmer
Jul 14, 2000
57
MY
I found that use index key , or use SQL command to seek a text, that are no case sencitive, which I can have two data of "ABC", "abc", it just found it same as a one record only.
How can I to different the above records, when I seaching them??

I was using access database and vb6.

 
If you are using ADO the 'FIND' method is case sensitive.
David Paulson


 
I am trying to have case sensitive searches using FIND. Using the code below the searches are NOT case sensitive. I have placed Option Compare Binary in the declarations of the module. I am using access and vb6. Is there some global setting that I am missing somewhere? I am using the * wildcard in the string "mynotes".

thanks

ron


If myfield = "NGC Description" Then
datprimaryrs.Recordset.Find "ngc_descr like " & "'" & mynotes & "'", adSearchForward
End If
 
Hi Ron,

When using ADO, any queries using the keyword 'LIKE' uses the '%' as the wildcard. Try that.
David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top