Page 1 of 1

(sub)Form on temporary table

Posted: Wed Mar 20, 2024 6:08 pm
by shuray
Hi everyone!

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.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:

Code: Select all

+---------------------------------
MAIN FORM for Group 1:

 Subform of Months
	[Jan  ]
	[Feb  ]
	[     ]

 Subform of Objects
	[apple  ]
	[orange ]
	[       ]
+---------------------------------
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

Re: (sub)Form on temporary table

Posted: Sat Mar 23, 2024 7:08 pm
by Enric
With SQL builder you have to filter the table based on the column. Check how "relations" work in software like Microsoft Aceess and you will understand... is the same

Re: (sub)Form on temporary table

Posted: Mon Mar 25, 2024 7:55 am
by kev1n
Would it be possible to add some screenshots with annotations so I can better understand what you are trying to achieve?