I have an .asp script that runs the following SQL statement;
set rstmp = CustomQuery("select * from SysRes_Master where DATEDIFF(day, GETDATE(), DateChkIn)<1")
What this returns on the webpage is any record with a date in the "DateChkIn" field that is older then the days date (current). However, if this field is blank that record is also returned.
How can I modify this so that is still returns the expired record but ignores any records with a blank in the same?