Hi All. I have three unbound controls on a form. If all 3 have content I want to enable a Save button but if any one of them does not then I want to disable the button. I've put vba in the afterupdate of each of them and tried Len(), Nz(), IsNull() and = "". It works fine once all three have content but if I delete the contents of one then I get an Invalid use of Null error. The most recent attempt was
If Len(Nz(Me.Text4, "")) = 0 Or Len(Nz(Me.Text8, "")) = 0 Or Len(Nz(Me.Text15, "")) = 0 Then Me.Command11.Enabled = False Else Me.Command11.Enabled = True
Thanks
If Len(Nz(Me.Text4, "")) = 0 Or Len(Nz(Me.Text8, "")) = 0 Or Len(Nz(Me.Text15, "")) = 0 Then Me.Command11.Enabled = False Else Me.Command11.Enabled = True
Thanks