Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Parameterized views in a forms DE
Message
De
16/07/1999 17:11:22
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00242522
Message ID:
00242605
Vues:
28
Two things:

1) Is NoDataOnLoad set to True for the view?
2) Are you setting the value of the property at design time with the same data type as ab_id? For example, if ab_id is numeric, make curid = 0 in the Form Designer.


>Sorry about the confusion. Yes the " were in there (the view designer kept putting them in, that thing is a little funny).
>
>Here is the select now:
>
>SELECT *;
> FROM workman!addressbook;
> WHERE Addressbook.ab_id = ?thisform.curid
>
>Now I get a operator/operand mismatch when the form runs.
>
>
>
>>Hi Roi ----
>>
>>Change the word "filter" to "parameter"...it's confusing. Anyway, are the double-quotes in the parameter of the view. If so, that would be the cause. It should be
>>
>>SELECT * FROM table WHERE curid = ?THISFORM.curid
>>
>>>I have a prop on the form - CurId.
>>>
>>>I changed the filter to "thisform.curid" and ?"thisform.id" but the view doesn't contain any data. If I change it back to a var - lcCurId - it works.
>>>
>>>Should the filter be something else?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform