Syntax problems. the statements need to go on the next line from the Case:
Select Case Session("errorCode") * 1
Case 11
errorMessage = "Please use Microsoft " & _
"Internet Explorer 4.0 or higher."
Case 31
If Len(Session("failpoint")) <= 0 Then
Session("failpoint") = _
"Unknown - Please make sure that the" & _
"database server is available"
errorMessage = "An error has occurred. " & _
"( Error code: " & Session("failpoint") & " )"
End If
End Select
"JJY" <_j***@yahoo.com> wrote in message
news:ey**************@TK2MSFTNGP12.phx.gbl...
Hi.
Does anyone have a clue what is wrong here? It's complaining at the line
with "case 11".
select case session("errorCode")*1
case 11 errorMessage = "Please use Microsoft Internet Explorer 4.0 or
higher."
case 31 if len(session("failpoint")) <= 0 then session("failpoint") =
"Unknown - Please make sure that the database server is available"
errorMessage = "An error has occurred. ( Error code: " &
session("failpoint") & " )"
end select
Thanks in advance.