Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any Crystal Report Gurus?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00657026
Message ID:
00657145
Views:
35
Still Doesn't do it but thanks for trying. I am using version 6.0 so maybe thats the problem :(

AddDefaultValue() will however build the combo box with other choices. :)

I'll keep looking...

Ron


>Try the .AddCurrentValue("01"). That's what I did and it doesn't prompt me. This parameter field is used in the record selection in my case, to display the report only for the value passed. Using the AddCurrentValue method to set my value, the report runs and displays nothing other than the report for the value passed. I'm guessing that it might not be accepting your default value, so when the SetCurrentValue is executed it has nothing to use and so activates the prompt. Try the AddCurrentValue, I think it will do what you need, and replace both of those lines with one.
>
> Randy
>
>>Hi Randy,
>>
>>I have gotten it to work somewhat.
>>
>>loCrRpt.ParameterFields.Item(1).SetDefaultValue("01")
>>
>>Sets the value. However When I issue a
>>loCrRpt.ParameterFields.Item(1).SetCurrentValue([TRUE])
>>
>>This according to the Developers help is supposed to keep the Parameter Value Window from Popping up and it doesnt. Any Idea how to stop that?
>>Other than using the EnableParameterPrompting value. If I set that to .F. then I don't get any data even though I set the default value to "01"
>>
>>Ron
Ronald L. Thorp
http://www.Fox-Pros.com
Fox-Pros, Inc.
Office 407-498-0100
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform