Hello,
I've been messing around with this for a few hours now. I think I'm stuck.
I inserted the formula into my report to see that it gives a Boolean value, which is great, thanks!
However, I'm confused as to where I could incorporate it into the report. I think that I'm looking for it to truncate, or not display, appt times that are from the opposite session, AM or PM.
For example, with this formula, it displays the appt time. If the appt time in APPOINT.From is 540, it displays as 09:00 AM:
if Truncate ({APPOINT.From} / 60 ) > 12.00 then
ToText
((Truncate ({APPOINT.From} / 60 )) - 12,"00") +":"+ToText (Remainder
({APPOINT.From},60 ),"00") + "PM"
else if Truncate
({APPOINT.From} / 60 ) = 12.00 then
ToText (Truncate
({APPOINT.From} / 60 ),"00") +":"+ToText (Remainder ({APPOINT.From},60
),"00") + "PM"
else
ToText (Truncate ({APPOINT.From} /
60 ),"00") +":"+ToText (Remainder ({APPOINT.From},60 ),"00") + "AM"
Same with 900 displays 03:00 PM.
Using the formula below, how would I get the report to not display PM session ({?Session}) times when the AM session parameter ({?Session}) is selected?
({?Session}='AM' and {APPOINT.From} < 720)
or
({?Session}='PM' and {APPOINT.From} >= 720)
Thanks,