ADO filtering

ADO filtering

Postby joseluispalma » Thu Dec 24, 2020 9:21 am

Hello friends,

I need to perform a filter in ADO using a date, and it gives me an error:

Code: Select all  Expand view


   cFilter := "HIREDATE >= FW_ValToSQL(DATE())"
   oRs:Filter := cFilter


 


What am I doing wrong?

Thank you and a greeting
joseluispalma
 
Posts: 109
Joined: Mon Apr 30, 2012 9:10 am

Re: ADO filtering

Postby joseluispalma » Thu Dec 24, 2020 10:10 am

I save the filter expresion in a field of the report´s table.
joseluispalma
 
Posts: 109
Joined: Mon Apr 30, 2012 9:10 am

Re: ADO filtering

Postby anserkk » Thu Dec 24, 2020 11:09 am

What about
Code: Select all  Expand view
cFilter := "HIREDATE >= "+FW_ValToSQL( DATE() )
oRs:Filter := cFilter
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: ADO filtering

Postby joseluispalma » Thu Dec 24, 2020 11:24 am

Thank you, that works, but I need to store the full filter in a database.
joseluispalma
 
Posts: 109
Joined: Mon Apr 30, 2012 9:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 42 guests