Results 1 to 3 of 3

Thread: [RESOLVED] Passing Currency Variable From Subreport to main Report

  1. #1

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Resolved [RESOLVED] Passing Currency Variable From Subreport to main Report

    Ok I have a main report with a couple subreports. I am able to successfully pass numberVar variables from the main report to the subreports but when I try to passs a currencyVar from the subreport to the main report it just gives back a value of $0.00 on the main report.
    I declare the variable in the sub report as
    Shared currencyVar myTotal := {@TotalCost};
    myTotal
    then in the main report i call it in a section below the section containing the subreport as
    Shared currencyVar myTotal;
    myTotal

    when i place this variable inthe subreport it comes back as the correct value, but in the main report I just keep getting $0.00. Can anyone help me out?

    thanks in advance

    oh ya, I am using Crystal Reports 9 and ms access 2003
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Passing Currency Variable From Subreport to main Report

    Is the Subreport suppressed? Is the section where the SubReport is sited suppressed?

  3. #3

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: Passing Currency Variable From Subreport to main Report

    No It's not, But I actually Solved this on my own. Stupid mistake, I had my section linking wrong. thanks though.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width