I can't seem to get the syntax right here. No matter what I try i get either unterminated string constant error or Expected')' error. Any help would be greatly appreciated.
The error comes at the end of the subquery where the ") & ")" is. Thanks for any advice here.
Code:
sSqlWrk = "SELECT [wrestlername] FROM [wrestler]"
sSqlWrk = sSqlWrk & " WHERE ([weightclass] IN (@FILTER_VALUE))"
sSqlWrk = sSqlWrk & " AND (" & NOT EXISTS (" & SELECT [wrestlername] FROM lteam WHERE [ltID]= " & lteam.ltID.CurrentValue & ") & ")"
The error comes at the end of the subquery where the ") & ")" is. Thanks for any advice here.