It can pass it on my Oracle database, I just tested it.
{SOL_VW_RPT_CONTACT_DTL.UTCSTARTTIME} in lastfullmonth
will net:
WHERE
"SOL_VW_RPT_CONTACT_DTL"."UTCSTARTTIME" >= TO_DATE ('01-05-2002 00:00:00', 'DD-MM-YYYY HH24:MI:SS') AND
"SOL_VW_RPT_CONTACT_DTL"."UTCSTARTTIME" <= TO_DATE ('31-05-2002 23:59:59', 'DD-MM-YYYY HH24:MI:SS')
Post your entire record selection criteria and let's have a go at it.
Or, you might create start and end date formulas as in the following:
(note I use parameters to drive this so the user can select lastfullmonth, lastfullyear, etc, here's the lastfullmonth)
@startdate
If {?Predefined Date Range} = "Last Month" Then
If Month (CurrentDate) = 1 Then
DateTime((Year(CurrentDate)-1),12,1,0,0,0)
Else
DateTime(Year(CurrentDate),Month(CurrentDate)-1,1,0,0,0)
@enddate
If {?Predefined Date Range} = "Last Month" Then
If Month (CurrentDate) = 1 Then
DateTime(Year(CurrentDate)-1,12,1,23,59,59)
Else
DateTime(Year(CurrentDate),Month(CurrentDate),1,23,59,59)-1
record selection criteria:
(
({YourTable.YourDate} >= {@Date Range Start})
and
({YourTable.YourDate} <= {@Date Range End})
)
Note the parens.
My requirements and record selection criteria are much more elaborate than this, and I ALWAYS get all of the SQL to pass.
-k
kai@informeddatadecisions.com