Print Page | Close Window

Assigning a Shared variable in a Sub report

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=446
Printed Date: 04 May 2025 at 4:29am


Topic: Assigning a Shared variable in a Sub report
Posted By: TokyoAnt
Subject: Assigning a Shared variable in a Sub report
Date Posted: 01 Apr 2007 at 6:49pm

Hi,

I'm trying to assign a Shared DateTimeVar a date value in a SubReport but when I do this it blanks the entire report out so nothing at all is displayed in preview.
 
The sub & main report is not linked.
 
If I comment out the assignment only, the report works!
 
If I copy the code to the main report & run it from there, it works!
 
This is the code:
 
Shared DateTimeVar myTime;
myTime :=  {Resource.EmploymentStartDate}; // if I comment this, it works.
myTime; // and of course comment this as well
 
I have set up the same data connection in the main report for testing purposes only. It works in the main report fine.
 
What is going on here?
 
Thanks very much for any ideas on this.
 
Ant
 
 
 



Print Page | Close Window