FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADORDD and SE FILTER
Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
ADORDD and SE FILTER
Posted: Wed Jul 18, 2007 11:17 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 07:17 AM

Norbert,

Try to use UCASE() instead of UPPER()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 07:48 AM
Antonio Linares wrote:Norbert,

Try to use UCASE() instead of UPPER()


Antonio,

same problem.

   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)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 09:11 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 09:12 AM

Norbert,

Is FIELD a valid fieldname on your table ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 10:50 AM
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%'

:-)

Regards, Norbert
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 11:20 AM

Norbert,

Glad to know you got it working :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ADORDD and SE FILTER
Posted: Thu Jul 19, 2007 11:20 AM
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

Continue the discussion