|
-
April 3rd, 2001, 12:12 PM
#1
ADO.Recordset.Filter with like and no case sensitivity
Hi all,
I'm trying to filter a ADO 2.5 Recordset with
a statement similar to this:
select * from MyTable
where UPPER(StrColumn) like UPPER(CompareStr)
It doesn't seem to be allowed to use Database
functions like "UPPER". So is there any way to
achieve this using the Filter property?
The only way I know so far is to filter the
Recordset by modifying the original select
statement which I'd rather leave untouched.
Thanks in advance
Alexander Kempf
-
April 3rd, 2001, 12:40 PM
#2
Re: ADO.Recordset.Filter with like and no case sensitivity
'apply filter
rs.Filter = "author like 'J*'" 'author is a field
'eliminate filter
rs.Filter = ""
rs.Filter = "fieldname = " & sCriteria
Iouri Boutchkine
[email protected]
-
April 4th, 2001, 04:00 AM
#3
Re: ADO.Recordset.Filter with like and no case sensitivity
Thanks for your help. It works fine for filters
with no case sensitivity (I was wrong to think
the filter was case sensitive).
Is there also a way for case sensitive filters?
Alexander Kempf
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
|