Results 1 to 2 of 2
  1. #1
    RandV is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    12

    VB Code to launch a Crystal Report with parameters

    This is something that I think should be relatively straight forward but I haven't been able to google it. I'm building an Access (v2003) application to add some additional functionality to a 3rd party program which uses Crystal Reports, and to allow users to run the same report from either program I need to build the Access reports with Crystal. That's done, but now I for the life of me I can't figure out how to open these reports from Access.

    So my question is very simple, if I take a button and add an On-click event, what is the code I need to launch open a specific Crystal Report? I'm also going to need to be able to pass parameters to it.

    If anyone could help it would be appreciated, thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Google: Access VBA Crystal Reports

    Not finding much but start with:

    http://visualbasic.ittoolbox.com/gro...ing-vba-768431
    http://social.msdn.microsoft.com/For...8-d808097e748d
    http://bytes.com/topic/access/answer...orts-ms-access

    Might need to select "Crystal Report Engine 7 Object Library" in VBA References.

    Google: VB Crystal Reports set parameters

    Maybe you can translate VB.net code to VBA:
    http://www.thescarms.com/dotnet/CrystalParms.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need help to view a Crystal Report
    By itm in forum Access
    Replies: 2
    Last Post: 11-29-2011, 07:50 AM
  2. Crystal Report in Access
    By TheShabz in forum Access
    Replies: 3
    Last Post: 09-24-2011, 12:13 PM
  3. Launch URL from code
    By GraeagleBill in forum Programming
    Replies: 8
    Last Post: 08-22-2011, 12:48 PM
  4. Print Crystal Report from Access
    By AKQTS in forum Forms
    Replies: 0
    Last Post: 07-28-2010, 03:50 PM
  5. HOW DO I: Add or Launch Report from a Form?
    By ba1959nh in forum Forms
    Replies: 2
    Last Post: 09-25-2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums