BC30205: End of statement expected.

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.
 
K

Ken Cox [Microsoft MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top