I am filtering records (Crystal XI) based on a SQL Server 2005 DateTime field (EST_PROPOSAL). So my formula is as follows:
((Month ({C_OPPORTUNITY.EST_PROPOSAL}) = {@CurrentMonth}) and ((Year ({C_OPPORTUNITY.EST_PROPOSAL}) = {@CurrentYear})))
The CurrentMonth and CurrentYear formulas are simply Month (CurrentDate) and Year (CurrentDate), respectively.
The filtering seems fine except for records where EST_PROPOSAL is set for the first day of the month. So if the value in the database is: 2011-10-01 00:00:05.000, it is actually being evaluated as: 9/30/2011 08:05:00 PM in Crystal. Ths is obviously causing records to be eroneously excluded.
I'm not quite sure what could be causing this issue and if there is a way around it.
Thanks
((Month ({C_OPPORTUNITY.EST_PROPOSAL}) = {@CurrentMonth}) and ((Year ({C_OPPORTUNITY.EST_PROPOSAL}) = {@CurrentYear})))
The CurrentMonth and CurrentYear formulas are simply Month (CurrentDate) and Year (CurrentDate), respectively.
The filtering seems fine except for records where EST_PROPOSAL is set for the first day of the month. So if the value in the database is: 2011-10-01 00:00:05.000, it is actually being evaluated as: 9/30/2011 08:05:00 PM in Crystal. Ths is obviously causing records to be eroneously excluded.
I'm not quite sure what could be causing this issue and if there is a way around it.
Thanks