Welcome to SPN

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

Sign Up Now!

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
     

Share This Page