Page 1 of 1

ADO filtering

Posted: Thu Dec 24, 2020 9:21 am
by joseluispalma
Hello friends,

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

Code: Select all


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


 
What am I doing wrong?

Thank you and a greeting

Re: ADO filtering

Posted: Thu Dec 24, 2020 10:10 am
by joseluispalma
I save the filter expresion in a field of the report´s table.

Re: ADO filtering

Posted: Thu Dec 24, 2020 11:09 am
by anserkk
What about

Code: Select all

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

Re: ADO filtering

Posted: Thu Dec 24, 2020 11:24 am
by joseluispalma
Thank you, that works, but I need to store the full filter in a database.