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!

Using the cancel button on parameter fields

Status
Not open for further replies.

shortstuff2212

Programmer
Apr 12, 2002
35
0
0
GB
We are running crystal reports through a vb6 program using the activeX control. When we preview a report and the parameters come up on screen there is a cancel button. If you click the cancel button the report runs anyway. Is there a way to stop this happening?

Thanks in advance

Kath
 
I don't think there is a way, but, if you press cancel the parameter is passed as a null.

You can have something in your record selection like :

If isnull({?paramfield}) then {AnyStringField} = "DONT RUN" else true

then at least your report will return nothing.

Reebo
Scotland (Sunny with a Smile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top