P
pwdpwd via AccessMonster.com
I have a report form which enables 16 different reports; I have managed this
by using 4 different Option Groups, each with 2 buttons - no defaults. A
Command button traps non-selections, contains all the if statements and
executes the relevant report; that works fine.
I thought that it would be useful to allow the user to determine which of the
buttons should be a default. I have built a Parameter Form, arranged another
set of option buttons with another Command button, but when I write the code
to change the default status of one of the original buttons, I can't get it
to work.
I have checked the link that ruralguy posted (thanks, that's great) giving
the format for referring to forms, but cannot get my code to work.
I am using:
Forms!ReportWeekly!Frame286.DefaultValue = 1
but the message that I get is that Access can't find the form ReportWeekly
referred to. I've tried all combinations of using [] around the names and .
instead of ! but all to no avail. The ReportWeekly form is not open when I
am on the Parameter Form.
Any help would be much appreciated
by using 4 different Option Groups, each with 2 buttons - no defaults. A
Command button traps non-selections, contains all the if statements and
executes the relevant report; that works fine.
I thought that it would be useful to allow the user to determine which of the
buttons should be a default. I have built a Parameter Form, arranged another
set of option buttons with another Command button, but when I write the code
to change the default status of one of the original buttons, I can't get it
to work.
I have checked the link that ruralguy posted (thanks, that's great) giving
the format for referring to forms, but cannot get my code to work.
I am using:
Forms!ReportWeekly!Frame286.DefaultValue = 1
but the message that I get is that Access can't find the form ReportWeekly
referred to. I've tried all combinations of using [] around the names and .
instead of ! but all to no avail. The ReportWeekly form is not open when I
am on the Parameter Form.
Any help would be much appreciated