Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Views
Message
 
 
À
17/12/1998 16:30:14
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentine
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00168691
Message ID:
00168727
Vues:
22
Marcelo,

If you put the parameter in the twice, VFP will ask for it twice. If you have a memvar of that name in scope at the time it won't show the dialog at all.

>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform