I am trying to grab the network ID of the user and check if its netID is in the database as follow, but Iam having problem with the EXIST or IN clause.
(the database is MS SQL)
Dim strSQL As String
strSQL = "SELECT DISTINCT netID FROM tblDAP_uBeta"
If User.Identity.Name.ToLower
().ToStrin
g() IN (strSQL) Then
'Do this...
Else
'Do that...
End If
This gives me the error: End of statement expected
Start Free Trial