|
|
Changing report property on load
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: Change font for report control using VBA and MDE - comp.databases ...... ms-access... out how to track which user in the FRONTEND made the change ... 3/28/2011 6:35:20 PM) I have a form with a text ... Changing report property on load 2 185 (3 ... comp.databases.ms-accessChanging report property on load 2 194 (3/28/2011 3:25:40 PM) Of a report's group footer I would like to set the 'New page' property while loading the report, depending on ... disable printing until required fields filled in - comp.text.pdf ...Change font for report control using VBA and MDE - comp ... how to change the background color and print the PDF ... processing-instructions; Promoted Property ... Access 2007 autofill DLookup - comp.databases.ms-access... field Common Name in the table Name_Authority and load ... dropdown will have 3 columns, and the columnwidth property ... difficult to realize in the field, and things change. Access 2010 Backstage and the Custom Ribbon - comp.databases.ms ...Can the Backstage items 'visible' property be reset ... tabs> <tab id="MyReport" label="Report Print and ... that you should be able to open the hood to = change=20 ... Select form based on unbound text box - comp.databases.ms-access ...... from a drop down menu or does the LimitToList Property ... databases.ms-access ... hide the input box or change ... Loading Data from Text File into an HTML Drop Down Box ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... top 10 uses for random data compression?? anyone? - comp ...We can't report lemons unless Beth will on board feel ... Some retired level or space, and she'll greatly load ... the productive molecules in charge of precious change. how to calculate area of a grayscale image? - comp.soft-sys.matlab ...I = imread('coins.png'); %-- load the image m ... % Change the current folder to the folder of this m-file. ... note - comp.cad.solidworks Material and Fluid Property ... Changing Report Recordsource Property in VBA: recordsource ...Loading Advertisement... ... errors when I try and change the recordsource property of the new report. If I try and change the ... Save a sort order with a table, query, form, or report - Access ...... sort order, you are actually changing ... object, set the Order By On Load property of ... sheet, set the Order By On Load property to Yes. If the object is a form or a report, on ... 7/24/2012 3:49:02 AM
|
|
|
|
|
|
|
|
|