Thanks Kenny,
Heres what I get now
Technical Information (for support personnel)
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/Degday/DegreeDayslist.asp, line 486
Function calcHotWaterFactorLikeANormalPerson
Using this,
<% Function calcHotWaterFactorLikeANormalPerson
Dim result
Select Case strdegday
Case 0 To 6
result = 0
Case 7 To 10
result = 1
Case 11 To 16
result = 2
Case Else
result = 3
End Select
calcHotWaterFactor = result
End Function %>