Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open form ask for value
Message
 
 
À
14/06/2000 22:26:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00380555
Message ID:
00381757
Vues:
14
>Hi all,
>
>I have a view with this code,
>
>SELECT DISTINCT *;
>FROM jbfic!familias LEFT OUTER JOIN jbfic!familiascli ;
>ON Familias.c_codigo = Familiascli.c_codigo;
>AND Familiascli.c_codcli = ?codcli;
>ORDER BY Familias.c_codigo
>
>In form DE i have noDataOnLoad=.t. but when i run the form it ask me to enter the value for codcli.
>
>I set this value for ex. in BeforeOpenTables and it ask again, and the same if i do it in the form load event.
>
>Any ideas,
>
>Thank's in advance,
>
>João Batista

It sounds like there is a Requery() somewhere in your code that is run as the form instantiates. Check the form and everything in the class hierarchy.

The reason setting a variable in those two methods doesn't work is because of scope. You would have to make the variable public. A private variable won't work because OpenTables is not called from the Load or BeforeOpenTables events. They execute in a pre-defined sequence determined by the Dev Team at MS.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform