Hi

Private Sub Command2_Click()
If Text1.Text = " " And Text2.Text = "" Then
MsgBox "textbox is empty "
End If
End Sub


The above if-else statement doesnt seems to work
Anyone can detect anything wrong with the code?