title: Combobox null in if statement
body: <p>I am trying to code an if statement where if a certain combobox is null, then it runs a certain part of code if it has data in it then it runs another. I wrote up this:</p>
  
  <pre><code>Private Sub ProjectAddSetDateAutoBtn_Click()
  If ProjectAddAllDueDateAutoCmBx = Null Then
  'Code1
  Msgbox("ComboBox Is Null")
  Else
  'Code2
  Msgbox("ComboBox Has Data")
  End If
  End Sub
  </code></pre>
  
  <p>I leave the combobox with no data, and then it doesn't run the code in the first part of the if or the code in the 2nd part of it either! If I enter data into the box, it runs the 2nd part of the if statement perfectly. There are no errors, I am quite stumped on this. Do ComboBoxes have their own "Null"? Is there a problem with this if statement?</p>