Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Determinate current subreport

Discussion in 'Information Technology' started by Max ©®, Jul 28, 2006.

  1. Max ©®

    Max ©®
    Expand Collapse
    Guest

    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
    www.suonaresuonare.it
     
  2. Loading...


  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    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 - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "Max ©®" <me@maxetere.it> wrote in message
    news:ea23hi$397$1@area.cu.mi.it...
    > 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...
     
  4. Max ©®

    Max ©®
    Expand Collapse
    Guest

    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!!! :(

    --
    Max
    www.suonaresuonare.it
     
  5. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    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.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "Max ©®" <me@maxetere.it> wrote in message
    news:ea2884$d9m$1@area.cu.mi.it...
    > 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!!! :(
    >
    > --
    > Max
    > www.suonaresuonare.it
     
  6. Max ©®

    Max ©®
    Expand Collapse
    Guest

    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!

    --
    Max
    www.suonaresuonare.it
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page