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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you pass datetime fields between reports?

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
What is the best way to pass a datetime field from a subreport back to the main report?

Thanks Paul
 
Create a formula which uses a shared variable, as in:

whileprintingrecords;
shared datevar MyDate:= {table.date}

Then you can reference it in the main report AFTER the subreport fires using:

whileprintingrecords;
shared datevar MyDate

-k
 
Missed that you wanted a dateTIME, try:

shared datetimevar Mydate := {table.datetimefield}

or if it's a literal, use:

shared datetimevar Mydate := cdatetime(1970,12,31,10,34,59)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top