General information
Category:
Coding, syntax & commands
>I have a form with a grid. Several of the tables that are opened in the form's dataenvironment are added in the form init property via the addobject method. These must be opened this way because the names of the tables are stored in variables and may change depending upon which user opens the form.
>
>My problem is that the grid (which is bound to a static table, not created through addobject) will not open properly (empty white box). If I do not add tables to the environment via addobject, then it works fine.
>
>If I don't issue the...
>
>Thisform.dataenvironment.closetables()
>Thisform.dataenvironment.opentables()
>
>commands after adding the tables via addobject, then the grid opens fine but the tables I'm attempting to add to the dataenvironment don't get opened.
>
>Any suggestions?
>
>Thanks!
>
>Dick
>
>Dick Day Software Services
>83712 552nd Avenue
>Norfolk, NE 68701
>402/379-1606
I'm not sure, but maybe you need to requery the grid, or select the static table and then requery the grid. I always use queries which don't give me any problems.
nick
nick
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only