Global variable passed to Crystal Reports

I have a app that greates a clobal vairiable called glbFirstMonth. I want to pass this variable to a unbound field to use as a description  of the report. The variable value has been tested and works well. I cant seem to grasp how to pass it to the report...


Who is Participating?
frodomanConnect With a Mentor Commented:
You didn't indicate how you're calling the report but the general idea is to create a parameter on your report and then have your application pass a value to that parameter field.  W/in Crystal the parameter can be used more or less as a variable and it can be placed directly on the report for output.

Here's one example of how to pass a parameter (from  If you need different code let me know:

mlmccConnect With a Mentor Commented:
Here's a vb6 sample also - again though let me know if this isn't what you need:

All three suggestions could have solved it.  Not sure what was really wanted since we didn't get any feedback.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.