Is it possible to create an SQL command line for Crystal Reports 9 that automatically gets the current date.
In Crystal Report Designer I can create a selection formula that can look up the current date (today date). When I look at the SQL statement behind the selection formula it specifically states todays date, ie "TO_DATE ('18-01-2006 00:00:00', 'DD-MM-YYYY HH24:MI:SS')" ... not very flexible.
Can I overwrite this selection formula with an automatic date rather than a declared specific date.
I wanted to use something like "GETDATE()" which is a general SQL statement to retrieve the current date. But unfortunately Crystal doesn't like the syntax.
Any ideas ? Thanks.
In Crystal Report Designer I can create a selection formula that can look up the current date (today date). When I look at the SQL statement behind the selection formula it specifically states todays date, ie "TO_DATE ('18-01-2006 00:00:00', 'DD-MM-YYYY HH24:MI:SS')" ... not very flexible.
Can I overwrite this selection formula with an automatic date rather than a declared specific date.
I wanted to use something like "GETDATE()" which is a general SQL statement to retrieve the current date. But unfortunately Crystal doesn't like the syntax.
Any ideas ? Thanks.