Good evening dear programmers .
Well my current question is basicly theoretical .
I think it would help also other beginners in VBA programming in Access .
Here is the explanation of my question :
- We have a few tables with different information
- We have a public function called CreateDynamicReport
- CreateDynamicReport accepts as arguments :
-rpt_Title as String (used in the Footer as Title )
-rpt_Data as String (used as identifier for the selected fields in a table )
We have a form , that is calling the CreateDynamicReport function via a control button with On_Click event
On the form we have 5 checkboxes with labels .
3 of the checkboxes refer to records in Table1
2 of the checkboxes refer to records in Table2
Checkboxes are unbound.
If we assume that we want to set the rpt_Data argument according to the checkboxes value (True or False ) - then how can we have SELECT expression (as String ) stored in one variable in the calling form(or Control) , refering to two different tables(and selected fields ... ) ?
Best Regards.
Well my current question is basicly theoretical .
I think it would help also other beginners in VBA programming in Access .
Here is the explanation of my question :
- We have a few tables with different information
- We have a public function called CreateDynamicReport
- CreateDynamicReport accepts as arguments :
-rpt_Title as String (used in the Footer as Title )
-rpt_Data as String (used as identifier for the selected fields in a table )
We have a form , that is calling the CreateDynamicReport function via a control button with On_Click event
On the form we have 5 checkboxes with labels .
3 of the checkboxes refer to records in Table1
2 of the checkboxes refer to records in Table2
Checkboxes are unbound.
If we assume that we want to set the rpt_Data argument according to the checkboxes value (True or False ) - then how can we have SELECT expression (as String ) stored in one variable in the calling form(or Control) , refering to two different tables(and selected fields ... ) ?
Best Regards.