Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button for Report 1

Status
Not open for further replies.

Heather2005

Programmer
May 16, 2005
15
US
How can I create a button that will execute a crystal report?

I know how to create a button on a form but what should I use to tell it to execute a report?

Any suggestions?

Thanks,
Heather
 
You may try this:
CreateObject("WSCript.Shell").Run "\path\to\yourReport.rpt", 1, True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sorry to ask such a simple question but where would I add this line?

Thank you for your help.
 
In the Click event procedure of your Button.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Is there an easy way to have it enter and run the report or is that getting pretty detailed?
 
Sorry, I don't know Crystal Report.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top