Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I'm trying to display results based on a form. Everything works until the last few lines where I'm trying to display a database field. Can anyone tell me why this code isn't working? I get the error expected end when I include the last 4 lines. Any help is very much appreciated.
<%
If Recordset1.Fields.Item("Type"="0" then
response.write "Eff"
end if
If Recordset1.Fields.Item("Type"="1" then
response.write "1"
end if
If Recordset1.Fields.Item("type"="2" then
response.write "1 Study"
end if
If Recordset1.Fields.Item("Type"="3" then
response.write "2"
end if
If Recordset1.Fields.Item("Type"="4" then
response.write "3"
end if
If Recordset1.Fields.Item("Type"="5" then
response.write "4"
end if
If Recordset1.Fields.Item("Type"="%" Then
response.write "Recordset1.Fields.Item("Bedrooms".Value"
End If %>
I'm trying to display results based on a form. Everything works until the last few lines where I'm trying to display a database field. Can anyone tell me why this code isn't working? I get the error expected end when I include the last 4 lines. Any help is very much appreciated.
<%
If Recordset1.Fields.Item("Type"="0" then
response.write "Eff"
end if
If Recordset1.Fields.Item("Type"="1" then
response.write "1"
end if
If Recordset1.Fields.Item("type"="2" then
response.write "1 Study"
end if
If Recordset1.Fields.Item("Type"="3" then
response.write "2"
end if
If Recordset1.Fields.Item("Type"="4" then
response.write "3"
end if
If Recordset1.Fields.Item("Type"="5" then
response.write "4"
end if
If Recordset1.Fields.Item("Type"="%" Then
response.write "Recordset1.Fields.Item("Bedrooms".Value"
End If %>