Board index » delphi » Filter using date field

Filter using date field

I am try to set a filter on a date field using a date from a tdatetimepicker
I have tried both of following

historytb.filter:='cdate='+quotedstr(datetostr(dateof(dateedit1.date)))

historytb.filter:='cdate='+quotedstr(datetostr(dateedit1.date))

the progam hangs for about 30sec and then gives an access violation

Regards
Denis

 

Re:Filter using date field


Quote
>historytb.filter:='cdate='+quotedstr(datetostr(dateedit1.date))
>the progam hangs for about 30sec and then gives an access violation

That should work.  Can you enter a filter in the IDE and have that work?
It sounds like you have other problems like a corrupt table.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads