Access SQL SELECT * FROM X WHERE [Field] = null statement

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Access quickie question-

Have a table called ValidAxes. Design as follows-
FieldName Type Null OK ?
--------------------------------
ProcessType Text NO
EEType Text YES
....
....
--------------------------------

Have 2 records in the table. Records as follows-
ProcessType EEType ... ...
----------------------------------------
DrillingProcess Delta
DrillingProcess
----------------------------------------

Can fetch the first record using
"SELECT * FROM ValidAxes WHERE [ProcessType] = 'DrillingProcesses' AND
[EEType] = 'Delta'"

How do I fetch record 2 ? There is guaranteed to be only one such
record having EEtype = null. This does not work
"SELECT * FROM ValidAxes WHERE [ProcessType] = 'DrillingProcesses' AND
[EEType] = (null)".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top