Solved

shared date variable  problems

Posted on 2004-10-02
4
767 Views
Last Modified: 2011-10-03
I dont' know why this is happening but I've declared a shared variable in my group header like:
shared dateVar myDate := Date(0,0,0);


Then in my details the same thing but when i do this:

myDate := (myTable.myDate);

Is says that
(myTable.myDate) isn't a date.

Tigger
0
Comment
Question by:Tigger996
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 12209617
Verify the the datebase format and type.  It may be that in the database it is a DATETIME type

change to
DateTimeVar myDate := Date(0,0,0);


mlmcc
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 12209621
The field needs to be enclosed in curly braces instead of parenthesis.
Also, make sure that you redeclare the variable in the second formula:
One question for you, are you using a subreport to pass the variable to?  If not, a shared variable is overkill.  It wil still work, but it just takes extra resources.  You can use Global instead.

shared dateVar myDate := {myTable.myDate};
0
 

Author Comment

by:Tigger996
ID: 12209647
It was in curly braces... I just miss typed here.  
Thanks mlmcc that fixed it.
I also had:
myDate := Date({myTable.myDate});

and that worked as well.
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 12209989
Thought I had suggested the curly braces...oh well
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now