ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SQL for EMPTY records (https://www.excelbanter.com/excel-programming/272774-sql-empty-records.html)

Seth[_3_]

SQL for EMPTY records
 
I am trying to open a recordset using the following SQL
statement:

"SELECT * FROM MyTable WHERE MyDate = ''"

I want all the records that don't have a valid date...in
the database, there is either a date value or "N/A" to
indicate that there is presently no date.

Under normal conditions (i.e., selecting all the records
in MyTable), all the records in the MyDate field that
have "N/A" values are returned as empty strings.

What is the proper SQL syntax for getting all the non-
date values in the MyDate field?

Thanks,

Seth


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com