Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Coding in VB6 a default parameter value Post Reply Post New Topic
Author Message
PLTyler
Newbie
Newbie


Joined: 03 Jan 2009
Online Status: Offline
Posts: 24
Quote PLTyler Replybullet Topic: Coding in VB6 a default parameter value
    Posted: 26 Feb 2009 at 5:07am
Hi,
 
How do I pass a default parameter to a CR XI report in VB6?
 
For example I have a parameter list of years from 2000 to 2020 and I want to pass on the result of str(Year(Now)) so that the user automatically sees the current calendar year as his/her default option - but can choose another year from the drop down list - if wished.
 
"AddDefaultValue" seems to have no effect at all (probably because the current year already exists in the parameter list)
 
"AddCurrentValue" removes the parameter altogether and the report defaults to the current year.
 
Any suggestions?
 
Thanks in advance!
 
Peter Tyler 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.