BC30205: End of statement expected.

  • Thread starter Thread starter JJY
  • Start date Start date
J

JJY

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.
 
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
 
Back
Top