I have a text box called LastName and a MaskedTextBox for a date entry. I need to compare the two and if both textboxes have characters in them I need to generate a message. The following code is what I've tried and it doesn't work.
If LastName.Text IsNot Nothing And DOB.Text IsNot Nothing Then
MsgBox("You can only search with Last Name or DOB!")