(sub)Form on temporary table
Posted: Wed Mar 20, 2024 6:08 pm
Hi everyone!
Suppose I have a SQL table:
i.e. each group number contains full cross of Month and Object
I would like to have a form with two subforms, each of them has an editable grid with ability to modity a list:
I can make SQL select in BeroreEdit of a main form and populate two temporary tables (one for months, another for objects) and place subforms based on that selections on the main form. But how to specify the temporary table as Table Name property of the subform?
Could you please advise an approach to solve this problem?
Thank you
Suppose I have a SQL table:
Code: Select all
GROUP MONTH OBJECT
===== ===== ======
1 Jan apple
1 Jan orange
1 Feb apple
1 Feb orange
2 March plum
3 March cherry
...
I would like to have a form with two subforms, each of them has an editable grid with ability to modity a list:
Code: Select all
+---------------------------------
MAIN FORM for Group 1:
Subform of Months
[Jan ]
[Feb ]
[ ]
Subform of Objects
[apple ]
[orange ]
[ ]
+---------------------------------
Could you please advise an approach to solve this problem?
Thank you