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?