Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Data Connectivity
Message Icon Topic: Run Crystal from MS Access Post Reply Post New Topic
Author Message
AlikY
Newbie
Newbie
Avatar

Joined: 18 Feb 2010
Location: United States
Online Status: Offline
Posts: 3
Quote AlikY Replybullet Topic: Run Crystal from MS Access
    Posted: 18 Feb 2010 at 9:51am

Hi! I working with Crystal 11 and MS Access 2003. I created report using Access as Database and I need run this report from the same Database sending parameters in Crystal Report.

What Code should I use on Click event of the Command Button on the form?
Please help.
Thank you.
Al.
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 18 Feb 2010 at 11:29am
This question is probably better directed to an MS Access developer's forum.
 
It appears you need the VBA code to put into the click event on the Access form button. Since I am not aware Access offers a viewer component which I believe such a circumstance would require the presence of   a copy of CR to run the report and while you may call up the report it would run in CR not Access. Perhaps there will be an MS Office developer who sees this post and offer up the VBA code and correct any misinformation I may have offered.
 
If you have all that sorted out you can pass parameters to the CR report object. The parameters exist in a collection and I believe you can reference them by name or index number. I dont have the reference in front of me, but I have done this in .Net. If you look on the web you should be able to find the syntax needed for VB and then port it the appropriate Access/VBA code.
 
Here is a .Net example
 
Here is another
 
 
Perhaps they will get you pointed towards what you need.
 
Regards
 
John W.


Edited by jkwrpc - 18 Feb 2010 at 11:57am
IP IP Logged
AlikY
Newbie
Newbie
Avatar

Joined: 18 Feb 2010
Location: United States
Online Status: Offline
Posts: 3
Quote AlikY Replybullet Posted: 19 Feb 2010 at 5:55am

John, Thank you very much for quick respond.

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.