I am trying to disable certain form controls based on a combo box selection. The combo box looks up a product list in a products table. However I am not disabling the form control based on the first column combo box value but the value of column in the same record.
This code works fine if the value in column 12 is not null and I change the code to look for that value. I've also tried it with If IsNull(me.cboproduct.column(12) and the code stiill doesn't function.
What am I missing with null values here?
Code:
Private Sub cboProduct_AfterUpdate()
If Me.cboProduct.Column(12) = "Null" Then Me.Surface_Resistivity.Enabled = False Else Me.Surface_Resistivity.Enabled = True
End Sub
This code works fine if the value in column 12 is not null and I change the code to look for that value. I've also tried it with If IsNull(me.cboproduct.column(12) and the code stiill doesn't function.
What am I missing with null values here?