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

Disable crystal pop up for parameters 1

Status
Not open for further replies.

teachmecr

Programmer
Oct 1, 2006
72
US
Title: Disable crystal pop up for parameters
asked by zafridi on 12/12/2006 02:29PM PST
This question is worth 250 Points




hi
is it possible to disable or by pass a pop up for entering parameters during run time from VB if certain parameter is not provided. I have everything working fine in my Vb connected to crystal reports. i have a combox box that is optional when its selected its values get passed to the report parameter otherwise i dont want anything to be passed from it. But everytime i dont select anything from this combox box the crystal window opens up asking for enterting some value for that parameter. Is there any work around this. thanks
 
What is this worth 250 points stuff, did this question fail in expertsexchange and you intend to use this forum to find the answer for Zafridi?

Set default values for the parameters involved, and pass the defaults when nothing is entered.

Obviously you've supplied little technical information, such as data types, the Crystal version, etc., so it's hard to give quality advice.

Anyway, once defaults are set, use the record selection to allow for them, as in:

(
if {?MyParameter} <> "Default" then
{table.field} = {?MyParameter}
else
if {?MyParameter} = "Default" then
true
)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top