I think OP is saying that button should be disabled if either field is null.
Code:If Len(Me!Company_Name & vbnullstring) = 0 OR Len(Me!Country & vbnullstring) = 0 Then btnAdd.Enabled = False Else btnAdd.Enabled = True End If
I think OP is saying that button should be disabled if either field is null.
Code:If Len(Me!Company_Name & vbnullstring) = 0 OR Len(Me!Country & vbnullstring) = 0 Then btnAdd.Enabled = False Else btnAdd.Enabled = True End If
thank you this works. sorry im not good in english i cannot explain well
English was good enough - we got the job done!