Determinate current subreport

  • Thread starter Thread starter =?ISO-8859-15?Q?Max_=A9=AE?=
  • Start date Start date
?

=?ISO-8859-15?Q?Max_=A9=AE?=

Hi all!
I've a main report that contain a subreports.
Into main report's "Page" event how can I determinate the current
subreports?
I need to know the current subreports because I must edit a control on
this subreport when page change...

tnk
 
Max, I don't think you will be successful in editing the subreport values in
the Page event of the main report, due to the timing of how Access does
things.

Could you work the other way around, by examining the Page property of the
main report in the Format event of which every section in your subreport
contains the control that you want to modify? You should be able to get the
value of:
[Report].[Parent].[Page]
 
Allen Browne ha scritto:
Could you work the other way around, by examining the Page property of the
main report in the Format event of which every section in your subreport
contains the control that you want to modify? You should be able to get the
value of:
[Report].[Parent].[Page]

Uhm... I do not understand... where I find the "format" event?
Unfortunately subreport doesn't raise any event if it's called from a
main report!!! I'd try to valorize a label on form with the following event:

Report_Activate()
Report_Current()
Report_GotFocus()
Report_Load()
Report_Open(Cancel As Integer)
Report_Page()

but no one work!!! :(
 
Presumably you are trying to put something in a control (text box?) in a
section (Detail?) in the subreport.

Each section (such as Detail) has has a Format event, which Access fires
when it is about to plan how to layout this section for this record.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Max ©® said:
Allen Browne ha scritto:
Could you work the other way around, by examining the Page property of
the main report in the Format event of which every section in your
subreport contains the control that you want to modify? You should be
able to get the value of:
[Report].[Parent].[Page]

Uhm... I do not understand... where I find the "format" event?
Unfortunately subreport doesn't raise any event if it's called from a main
report!!! I'd try to valorize a label on form with the following event:

Report_Activate()
Report_Current()
Report_GotFocus()
Report_Load()
Report_Open(Cancel As Integer)
Report_Page()

but no one work!!! :(
 
Allen Browne ha scritto:
Each section (such as Detail) has has a Format event, which Access fires
when it is about to plan how to layout this section for this record.

Ehm... sorry... :P
I've found it.
Tank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top