Mar 8, 2005 #1 PQTIII IS-IT--Management Joined Sep 21, 2004 Messages 110 What is the best way to pass a datetime field from a subreport back to the main report? Thanks Paul
Mar 8, 2005 #2 synapsevampire Programmer Joined Mar 23, 2002 Messages 20,180 Location US 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 Upvote 0 Downvote
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
Mar 8, 2005 #3 synapsevampire Programmer Joined Mar 23, 2002 Messages 20,180 Location US 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 Upvote 0 Downvote
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