I want using If and IsNull to make user insert data in 5 textboxes before he can access rest of the data.
I used this code, but when every just one of the fields is filled it open the rest of data.
How to write the If and IsNull function so that it requires all of this textoboxes filled first?
I used this code, but when every just one of the fields is filled it open the rest of data.
How to write the If and IsNull function so that it requires all of this textoboxes filled first?
Code:
If IsNull (me.textbox1 & me.textbox2 & me.textbox3 & me.textbox4 & me.textbox5) Then
MsgBox ("Insert all data first")
Exit Sub
End If
Rest of the code.