How to check if email id already exist in db using vb6
r.Open " select count(*) from login where username = '" & Text1.Text & " ' ", c, 3, 3
If Count > 0 Then
MsgBox " already exist "
Else
MsgBox "valid"
End If
r.Close
plese help this cod always show only 'already exist' msg.