How to validate a null value in a maskedtextbox phone number input mask
<p>I want to check for null values. using this code below. i am still getting values in the textbox. The values i am getting in the textbox are "(   )   -"... </p>

<pre><code>If Text_Phone.Text IsNot "" Then
If BuildSqlFlag = True Then
BuildSql = BuildSql &amp; " AND " &amp; "Phone = " &amp; Text_Phone.Text
Else
BuildSql = "Phone = " &amp; Text_Phone.Text
End If
BuildSqlFlag = True
End If
</code></pre>

<p>i am not exactly sure what is needed from my code to be changed to  i even tried the following: </p>

<pre><code>If Text_Phone.Text IsNot "(   )   -" Then
</code></pre>

<p>But that was no help. </p>