Hello, I’m running a report where we need to figure out the number of days between two date fields (in_date and out_date) in an SQL query, then display only those entries over 7 days and I need help figuring the best way to do this in a formula.
"figure out the number of days between two date fields (in_date and out_date) in an SQL query"
+
"then display only those entries over 7 days "
would require a SQL statement. SQL statements depend on database type and crystal version (not available in older versions). SQL statements can be used in selection formulas and sent to the database. If you need help with a SQL statement you need to provide this information.
Then you add
"I need help figuring the best way to do this in a formula"
You can calculate this in a formula and use that to suppress display, but it would be much more efficient to exclude the records returned using a SQL statement.
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.