Combobox null in if statement
问题 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: Private Sub ProjectAddSetDateAutoBtn_Click() If ProjectAddAllDueDateAutoCmBx = Null Then 'Code1 Msgbox("ComboBox Is Null") Else 'Code2 Msgbox("ComboBox Has Data") End If End Sub 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