Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open form ask for value
Message
 
 
To
14/06/2000 22:26:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00380555
Message ID:
00381757
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform