Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use Parameterized views in a forms DE
Message
From
16/07/1999 17:11:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00242522
Message ID:
00242605
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform