Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Numeric keys in View filter
Message
De
09/10/2002 20:50:58
 
 
À
09/10/2002 20:39:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00709641
Message ID:
00709648
Vues:
19
>>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?
>
>If not NULLable, the empty numeric value is 0.

Ed,

I am making memory variables named after the ones I used in the filter.
(e.g. for Custid = ?vp_custid, I create a mem var named vp_custid).

I just set the memvar to "" if it's character and the view ignores it. Are you saying I should set the memvar to NULL if the field (in this case Custid) is numeric?

TIA,
Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform