Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Numeric keys in View filter
Message
 
To
09/10/2002 20:34:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00709641
Message ID:
00709741
Views:
18
>Hello fellow viewers,
>
>I would like to include a numeric field in a view filter.
>
>However, when I do, and then bind that view to a query-by-example form, the numeric field cannot be null. This works fine as long as the user uses the numeric value to do the lookup, but what if he doesn't?
>
>If I set the .value of the field to "", I get a data type mismatch.
>
>Has anyone done this successfully? If so, how?

I do it this way:

My view filter is like this: nId>=?PKVALUE_MIN AND nID<=?PKVALUE_MAX.
When I want all records I set PKVALUE_MIN to the lowest possible number and PKVALUE_MAX to the highest possible number. If I want to have just one value, I set PKVALUE_MIN and PKVALUE_MAX to the that value.

>TIA,
>Dan

hth,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform