dbTalk Databases Forums  

Changing report property on load

comp.databases.ms-access comp.databases.ms-access


Discuss Changing report property on load in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default Changing report property on load - 03-28-2011 , 10:25 AM






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

Reply With Quote
  #2  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Changing report property on load - 03-28-2011 , 11:41 AM






<martin (AT) hotmail (DOT) com> wrote:

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

Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: Changing report property on load - 03-28-2011 , 01:34 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 (AT) 4ax (DOT) com...

<martin (AT) hotmail (DOT) com> wrote:

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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.