ADORDD and SE FILTER

ADORDD and SE FILTER

Postby NK » 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
User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Postby Antonio Linares » Thu Jul 19, 2007 7:17 am

Norbert,

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

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

Postby NK » Thu Jul 19, 2007 7:48 am

Antonio Linares wrote:Norbert,

Try to use UCASE() instead of UPPER()


Antonio,

same problem.

Code: Select all  Expand view
   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
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Postby Antonio Linares » Thu Jul 19, 2007 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Thu Jul 19, 2007 9:12 am

Norbert,

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

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

Postby NK » 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%'

:oops:

Regards, Norbert
User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Postby Antonio Linares » Thu Jul 19, 2007 11:20 am

Norbert,

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

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

Re: ADORDD and SE FILTER

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests