I am using an if
statement which is giving the the error message
End if without block if
Ive tried placing the End if
just before the sub
and just after the if
statement.
I also tried placing 2 end if
statements at the end of each IF
statement.
If IDtype = "UK" Then sqluserfix = " & UserId & "
If IDtype = "NE" Then sqluserfix = "(select USER_ID from USER_PARAMS where USER_ID2='" & UserId & "')"
End If
Any ideas?
Thanks.
See Question&Answers more detail:os