Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a select statement in DataEnvironment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00699638
Message ID:
00699659
Views:
16
>Hi All,
>
>I have a form and contain two tables in the DataEnvironment (Parent/Child relationship). The parent form I want to sum all the total from a field in the child table and display the grand total in the parent form. Is a way to write a select statement to sum the total inside the DataEnvironment? Is there any method of doing this task? Any sugguest or help is appreciated. Thanks in advance.


I would do the select in the form.load() as it occurs before any controls on the form are created.

In the dataenvironment opentables() method you could put something like :

IF DODEFAULT()
SELECT .......
INTO CURSOR ......

NODEFAULT
ENDIF
Cheers,
Jamie
Previous
Reply
Map
View

Click here to load this message in the networking platform