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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB 6 and Crystal 7...cannot stop running

Status
Not open for further replies.

PTW

Programmer
Joined
Jul 7, 2000
Messages
82
Location
CA
Hi. I'm trying to use Crystal Reports with VB 6 for the first time, so I created a very simple project and form. There are simply 2 command buttons and a Crystal Control on the form. Here is the total code:

Private Sub cmdStart_Click()
CrystalReport1.Action = 1
End Sub

Private Sub cmdExit_Click()
End
End Sub

I run the form, and the report comes up nicely. But after I close the preview window and click the comand button to exit the form, the form disappears but VB then starts taking up all of the CPU cycles. I've let this run as long as 20 minutes but it never seems to resolve itself.

Is there something that I am neglecting to do here? Thanks!
 
I didn't think there was much more to it.
Try setting the Action property to 0 before the End statement.

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top