ADORDD and SE FILTER

Post Reply
User avatar
NK
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany
Contact:

ADORDD and SE FILTER

Post by NK »

Dear Anthonio,

is it not possible to use an UPPER() in SET FILTER

SET FILTER TO "UPPER(FIELD) = 'AAA'"

if i use this command:

Error description: Error ADODB.Recordset/16389 E_FAIL: _FILTER

Any Ideas ? In ODBC it works fine...

Regards, Norbert
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Norbert,

Try to use UCASE() instead of UPPER()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
NK
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany
Contact:

Post by NK »

Antonio Linares wrote:Norbert,

Try to use UCASE() instead of UPPER()
Antonio,

same problem.

Code: Select all

   Error description: Error ADODB.Recordset/16389  E_FAIL: _FILTER

   Args:
     [   1] = C   UCASE(A_EMAIL) LIKE '%MICROSOFT%'

Stack Calls
===========
   Called from TOLEAUTO:_FILTER(0)
   Called from ADO_SETFILTER(537)
   Called from DBSETFILTER(0)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Norbert,

ADORDD just routes your request to the ADO driver.

Lets google to see how to use upper() or similar on an ADO filter
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Norbert,

Is FIELD a valid fieldname on your table ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
NK
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany
Contact:

Post by NK »

Antonio Linares wrote:Norbert,

Is FIELD a valid fieldname on your table ?
yes. i have testet, and i think, i don´t need any UPPER

it works with A_EMAIL LIKE '%MICOROSOFT%'
and A_EMAIL LIKE '%microsoft%'

:oops:

Regards, Norbert
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Norbert,

Glad to know you got it working :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: ADORDD and SE FILTER

Post by Enrico Maria Giordano »

NK wrote:Dear Anthonio,

is it not possible to use an UPPER() in SET FILTER

SET FILTER TO "UPPER(FIELD) = 'AAA'"

if i use this command:

Error description: Error ADODB.Recordset/16389 E_FAIL: _FILTER

Any Ideas ? In ODBC it works fine...

Regards, Norbert
Try

SET FILTER TO UCASE(FIELD) = 'AAA'

EMG
Post Reply