I am trying to store the previous value of a fielsd in a
variable so that I can compare the current records value to
a previous value and if the previous value lastEnd < WORK_FACILITY_USAGE.BOOKING_START then print out
a bunch of fields currently it balks at : -- saying a dtatime is required here |
|
v
if ({WORK_FACILITY_USAGE.BOOKING_START} > lastEnd
report header:
fomula field (@INIT):
Shared timeVar lastEnd := Time("12:00am"
details B:
formula field (@startGTMaxOfEnd)
WhilePrintingRecords;
Shared timeVar lastEnd;
if ({WORK_FACILITY_USAGE.BOOKING_START} > lastEnd
then
timeVar lastEnd := {WORK_FACILITY_USAGE.BOOKING_END};
ToText
({FACILITY_MASTER.TITLE} + " " + {@Start Time} + " -> " + {@End Time})
variable so that I can compare the current records value to
a previous value and if the previous value lastEnd < WORK_FACILITY_USAGE.BOOKING_START then print out
a bunch of fields currently it balks at : -- saying a dtatime is required here |
|
v
if ({WORK_FACILITY_USAGE.BOOKING_START} > lastEnd
report header:
fomula field (@INIT):
Shared timeVar lastEnd := Time("12:00am"
details B:
formula field (@startGTMaxOfEnd)
WhilePrintingRecords;
Shared timeVar lastEnd;
if ({WORK_FACILITY_USAGE.BOOKING_START} > lastEnd
then
timeVar lastEnd := {WORK_FACILITY_USAGE.BOOKING_END};
ToText
({FACILITY_MASTER.TITLE} + " " + {@Start Time} + " -> " + {@End Time})