E
Eric G
I've added an unbound Option group named SortBy to a form menu. with
its default value of 1.
The Option group has two options only, with the first option being the
default.
I've created four pairs of reports. Let's call them A1, A2, B1,B2
etc. I'd like to apply this one option group to these four pairs.
I just added the mate for each report. Previously I had the following
code open each of the four reports.
DoCmd.OpenReport "A1", acPreview
DoCmd.RunCommand acCmdFitToWindow
How would I now change the code so that when the button for report A
is selected and the option group is selecting Value 1 (default),
report A1 is opened?
Similarly how would I code to open report A2 when button A is selected
and option group option Value 2 is selected?
TIA Eric
its default value of 1.
The Option group has two options only, with the first option being the
default.
I've created four pairs of reports. Let's call them A1, A2, B1,B2
etc. I'd like to apply this one option group to these four pairs.
I just added the mate for each report. Previously I had the following
code open each of the four reports.
DoCmd.OpenReport "A1", acPreview
DoCmd.RunCommand acCmdFitToWindow
How would I now change the code so that when the button for report A
is selected and the option group is selecting Value 1 (default),
report A1 is opened?
Similarly how would I code to open report A2 when button A is selected
and option group option Value 2 is selected?
TIA Eric