How to pass a variable from VBA to Crystal Reports?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dsatino
    Contributor
    • May 2010
    • 393

    How to pass a variable from VBA to Crystal Reports?

    I'm sure the first question will, of course, be why. Please just trust me that I need it.

    Basically what I need is this:

    1. Code to open a Crystal Report
    2. Code that passes date parameters to the Crystal Report
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by dsatino
    I'm sure the first question will, of course, be why. Please just trust me that I need it.

    Basically what I need is this:

    1. Code to open a Crystal Report
    2. Code that passes date parameters to the Crystal Report
    Try using the FollowHyperlink () Method or the Shell Execute() API Function.

    Comment

    • dsatino
      Contributor
      • May 2010
      • 393

      #3
      Originally posted by ADezii
      Try using the FollowHyperlink () Method or the Shell Execute() API Function.
      Thanks, any idea on how to pass parameters/variables over?

      Ah, nevermind I see that these carry options for parameters. Sorry for the non-researched response.
      Last edited by dsatino; Aug 2 '10, 05:58 PM. Reason: lazy research on my end

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by dsatino
        Thanks, any idea on how to pass parameters/variables over?

        Ah, nevermind I see that these carry options for parameters. Sorry for the non-researched response.
        FollowHyperlink () has an Extra Info Argument that you may/may not be able to use, while ShellExecute() can accommodate Command Line Parameters which should definitely work. What I am not sure of, is how you would retrieve these on the Crystal Reports side.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32633

          #5
          Originally posted by dsatino
          dsatino: Sorry for the non-researched response.
          Don't be so hard on yourself. You're doing just fine. A valued member of the community already :)

          Comment

          Working...