If you're new to Crystal, you should also check DatePart, DateAdd and DateDiff. Lots of interesting things you can do very quickly, using the proper Crystal commands.
You should also give your version - 8.5, 9, 10, 11 or whatever.
I would like to do the following:
1. Difference, in minutes, between ActualStartTime and PlannedStartTime. (Note, actual may start BEFORE planned, so I would like negative and positive nmumbers to help me see which is late and early).
2. Boolean to return True/False on "Is ActualStartTime greater than or equal to PlannedStartTime + 15 minutes" (if start time is 7:00, is the actual after 7:15).
3. Similar to 2, but with ranges. For example, I would categories something that is "late" within 15 - 30 minutes, 31 - 60 minutes, 61 - 90 minutes...
You'll get better results starting a new thread as this topic is day of week, not time differentials, and people will see that it's already been answered and likely skip it.
Also, try posting technical information, such as the types of fields, note the original poster did so.
To calculate differences in datetime fields, use the datediff function, as in:
datediff("s",{table.datetime1}, {datetime2})
"n" is used for minutes.
Hit F1 in Crystal to check out the various other options.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.