Yes you are right Rob, I was just being lazy and couldn't be bothered to type out the whole code. I have Type A to Type D in the actual code.
I have tried your nested select statement but all I get is an
HTTP 500 - Internal server error. My code now reads like this:
- Code: Select all
<%
strType = request.form("Type")
strLevel = request.form("Level")
Quote = "0"
Select Case strType
Case "Type A"
Select Case strLevel
Case "Level 1" Quote = "5.57"
Case "Level 2" Quote = "7.88"
End Select
Select Case strType
Case "Type B"
Select Case strLevel
Case "Level 1" Quote = "10.45"
Case "Level 2" Quote = "14.18"
End Select
Select Case strType
Case "Type C"
Select Case strLevel
Case "Level 1" Quote = "6.62"
Case "Level 2" Quote = "9.35"
End Select
Select Case strType
Case "Type D"
Select Case strLevel
Case "Level 1" Quote = "11.50"
Case "Level 2" Quote = "15.65"
End Select
Case Else Quote = "2"
End Select
%>
Should it matter whereabouts on the page I put this code?