Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't access tables in data environment when launching form from program

0 views
Skip to first unread message

Bernie Mueller

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to

I created a form using the Form Designer and I added tables to the Data
Environment. When I run the form directly (in the Project Manager) I am
able to access the tables using a SELECT <alias>. However, if I launch the
form from a program (using a DO FORM command) I am only able to access the
tables using a SELECT <alias> command in the form's Init event handler.
Once the form is loaded, trying to access table using SELECT <alias> in a
button's click handler does not work: I get an "Alias not found" message.

If I look at the alias property in the appropriate cursor in the
DataEnvironment object, using the debugger, I can see that the alias name is
correct.

Why can't I access the tables in the data environment when launching the
form from a program?

Trey Walpole

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to

Does the form use a private datasession?

"Bernie Mueller" <soft...@thesyn.com> wrote in message
news:eCwsSvB...@cppssbbsa02.microsoft.com...

Bernie Mueller

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
Thanks Trey:
No, the form does not use a private datasession. It uses the Default Data
Session.
Trey Walpole <twal...@invlink.com> wrote in message
news:OI84f1BSAHA.276@cppssbbsa05...
0 new messages