Changing report property on load

  • Follow


Of a report's group footer I would like to set the 'New page' property while 
loading the report, depending on the user's choice. The values can be "None" 
or "After section".

Is it possible to accomplish this? Perhaps an example?

Thanks, Martin 

0
Reply martin 3/28/2011 3:25:40 PM

<martin@hotmail.com> wrote:

>Of a report's group footer I would like to set the 'New page' property while 
>loading the report, depending on the user's choice. The values can be "None" 
>or "After section".
>
>Is it possible to accomplish this? Perhaps an example?


How do users specify their choice?  If it's in a form check
box, you could use:

If Forms!theform.thecheckbox Then  
   Me.Section(6).ForceNewPage = 2
End If

--
Marsh
0
Reply Marshall 3/28/2011 4:41:23 PM


Excellent Marshall! It took me some time to find the right constance and 
then I discovered that you already wrote the right number :)
For completion here are the constants:

Setting    Constant    Description
0    acDetail    Form detail section or report detail section
1    acHeader    Form or report header section
2    acFooter    Form or report footer section
3    acPageHeader    Form or report page header section
4    acPageFooter    Form or report page footer section
5    acGroupLevel1Header    Group-level 1 header section (reports only)
6    acGroupLevel1Footer    Group-level 1 footer section (reports only)
7    acGroupLevel2Header    Group-level 2 header section (reports only)
8    acGroupLevel2Footer    Group-level 2 footer section (reports only)

Thanks,
Martin


"Marshall Barton"  schreef in bericht 
news:k9e1p6t77k1hrlt6kmk6hj0dckbrtdqeqj@4ax.com...

<martin@hotmail.com> wrote:

>Of a report's group footer I would like to set the 'New page' property 
>while
>loading the report, depending on the user's choice. The values can be 
>"None"
>or "After section".
>
>Is it possible to accomplish this? Perhaps an example?


How do users specify their choice?  If it's in a form check
box, you could use:

If Forms!theform.thecheckbox Then
   Me.Section(6).ForceNewPage = 2
End If

--
Marsh 

0
Reply martin 3/28/2011 6:34:08 PM

2 Replies
285 Views

(page loaded in 0.066 seconds)

Similiar Articles:













7/24/2012 3:49:02 AM


Reply: