Your variable
SQLstr
is never going to equal nothing because you set the variable to your insert SQL three lines before that. So your if statement...
If SQLstr <> Nothing Then
MessageBox.Show("name is here")
End If
will ALWAYS be hit because
SQLstr
will ALWAYS have the text you set in it three lines before.
It's not the correct value to check to see if you already have a value in your database. I agree with Manoj K Bhoir and CPallini that you need to perform the check separately and by other means.