Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set filter to date - today
Message
From
11/05/2016 12:16:06
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01636140
Message ID:
01636166
Views:
64
>>>I am trying in the command box to set a filter to records with podtime(date time expression) = today
>>>
>>>How do I do this
>>>
>>>Thanks
>>
>>Don't use SET FILTER, use SQL Select or something else.
>
>
>Thanks
>
>Thanks I eventually did it with
>
>SET FILTER TO day(podtime)=11 AND MONTH(podtime)=5 AND YEAR(podtime)=2016
>
>Thanks
>
>Colin

SET FILTER uses the same optimization that SQL uses - except that SQL can optimize across multiple tables at once.

SET FILTER TO podtime = date(2016,5,11) will work if podtime is a date. If you also have an index on podtime, it will optimize.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform