Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select - sql command
Message
 
 
To
02/02/2002 11:36:32
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00614397
Message ID:
00614473
Views:
23
>I need to gather records from a date field from a range to a range. What I'm trying is not working "where registration.flddate between thisform.text1.value and thisform.text2.value" What wrong with this line of code. I'm getting from vfp "Filter Clear" and "Object is not contained in a form" and all my records are displaying
>

Hi Randy,

Looks like your select is fully optimazable. In this case foxpro doesn't create cursor but instead opens source table with command similar to USE AGAIN and uses
SET FILTER TO BETWEEN(registration.flddate, thisform.text1.value, thisform.text2.value)
to filter records. SET FILTER expression is evaluated every time the pointer in a table moves not at the time when it's issued. To avoid this problem add NOFILTER clause to the Select to force foxpro to create a cursor as a temporay file.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform