Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized Views
Message
From
17/12/1998 17:43:38
 
 
To
17/12/1998 16:30:14
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00168691
Message ID:
00168722
Views:
22
If you create local variables with the same names and assign them values before executing the SQL Statement, you won't be asked for values.

>Hi Frank,
>
>I have this SQL statement.I create it by the View Designer.The question is why when I execute the view,it asks me twice the dDateTo parameter? I need that dDateTo statement takes the value of the BETWEEN's dDateTo value by default.I know that is simple but it doesn´t works.I´ve defined both parameters into the view parameters.
>I´ve just tried to put it without "?" but the View Designer puts automatically quotation marks on it.
>What´s wrong with this? or...with me
>
>Thanks in advance for your response.
>
>

>SELECT MyTable.date, MyTable.descrip, SUM(MyTable.amount), MyTable.quotas,;
>FROM MyDatabase!MyTable;
>WHERE MyTable.date BETWEEN ?dDateFrom AND ?dDateTo;
>OR (MyTable.plan = .T.;
>AND MyTable.date <= ?dDateTo;
>AND ALLT(MyTable.quotas) = "0");
>GROUP BY MyTable.oper_num;
>ORDER BY MyTable.date
>

>TIA
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Reply
Map
View

Click here to load this message in the networking platform