Currently i have this as part of my statement:
Microsoft SQL Server database.
c.closeDate is a 'smalldatetime' data type.
I want to show the 01/01/1900 values as "" so they dont show in an Excel report.
The above code doesn't change the recordset and still displays the closeDate.
The insert is done via a .asp page.
Initially the value that gets inserted for closeDate is "".
When viewing it in the dbase it is not ""(Blank) or <NULL> but 01/01/1900.
I can change all the values of the current data but any new information will still go in as 01/01/1900.
I would rather not run an SQL UPDATE on my report page every time a report is requested if it can be helped.
Any help would be great.
Code:
CASE c.closeDate WHEN '01/01/1900' THEN '' ELSE c.closeDate END AS [closeDate],
Microsoft SQL Server database.
c.closeDate is a 'smalldatetime' data type.
I want to show the 01/01/1900 values as "" so they dont show in an Excel report.
The above code doesn't change the recordset and still displays the closeDate.
The insert is done via a .asp page.
Initially the value that gets inserted for closeDate is "".
When viewing it in the dbase it is not ""(Blank) or <NULL> but 01/01/1900.
I can change all the values of the current data but any new information will still go in as 01/01/1900.
I would rather not run an SQL UPDATE on my report page every time a report is requested if it can be helped.
Any help would be great.