Hello,
I have another issue, this time regarding Column controls and their ControlSource. Specifically I have a Grid, whose Columns properties are redefined in a procedure ArrangeColumns every time it is needed (e.g. an Activate event, or when any table name changes). The underlying data is a set of multiple related tables, so that ControlSource values are something like "table1.Field1", "table2.Description" and so on. So far everything works fine as expected. A couple of fields have a ControlSource of type "table" + table9.SelectedYear + ".Amount", where table9.SelectedYear evaluates to something like "2018" (and table2018.dbf exists, of course, and is correctly opened and related before its use).
Now, things work well as long as the "parameter" (table9.SelectedYear) is initially selected, but when I change it in ArrangeColumns to something different (e.g. "2019") I hopelessly get a "Record is out of range" error. Tables are all open, variables are visible, I do not define extra private data sessions. What does this error mean?
Regards,
Dario
I have another issue, this time regarding Column controls and their ControlSource. Specifically I have a Grid, whose Columns properties are redefined in a procedure ArrangeColumns every time it is needed (e.g. an Activate event, or when any table name changes). The underlying data is a set of multiple related tables, so that ControlSource values are something like "table1.Field1", "table2.Description" and so on. So far everything works fine as expected. A couple of fields have a ControlSource of type "table" + table9.SelectedYear + ".Amount", where table9.SelectedYear evaluates to something like "2018" (and table2018.dbf exists, of course, and is correctly opened and related before its use).
Now, things work well as long as the "parameter" (table9.SelectedYear) is initially selected, but when I change it in ArrangeColumns to something different (e.g. "2019") I hopelessly get a "Record is out of range" error. Tables are all open, variables are visible, I do not define extra private data sessions. What does this error mean?
Regards,
Dario