Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a SharedVar in a dateTime function

Status
Not open for further replies.

sxmnl

Technical User
Dec 17, 2002
28
US
Hi, I have a main report that has a StartTime and EndTime
I have shared these variables to my subReport. To use as a start time and end time in my line chart. Both {@StartTime} and @EndTime are a datetime variable. This is my code below. I keep getting a error that it need a date

Help Please and Thanks

{NUMERICLOG.TIMESTAMP} in DateTime ({@StartTime}) to DateTime ({@EndTime})
 
What data types are these variables?

{NUMERICLOG.TIMESTAMP} in DateTime ({@StartTime}) to DateTime ({@EndTime})

Assumes that your variables are in a format that will convert to a type datetime (as opposed to just a type date).

You haven't shared any specifics about data types, or what's contained within them, hard to help much without that.

-k kai@informeddatadecisions.com
 
thanks for the response.

{NUMERICLOG.TIMESTAMP}=(DateTime)value
so does the @StartTime and @EndTime that is what it shows.

This is the Format I recieve on my SharedVar

shared datetimevar End = 2/25/2003 9:35:53PM
shared datetimevar Start = 2/25/2003 2:50:33PM

If you need more Info. I will provide it.This is Killing me

Thanks

 
Are you trying to use these values in the selection formula of the subreport? You can't use shared variables in the selection formula. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top