Get 'Object Required' error on the first line of my IF statement:
<%
IF (rsRoomRoster.Fields.Item("RoomHoldDate").Value IS NOT NULL) AND (rsRoomRoster.Fields.Item("AdmissionDate").Value IS NULL) THEN
Response.Write("<td>")
Response.Write(rsRoomRoster.Fields.Item("ResName").Value)
Response.Write("Room on Hold")
Response.Write("</td>")
ELSE
Response.Write("<td>")
Response.Write(rsRoomRoster.Fields.Item("ResName").Value)
Response.Write("</td>")
END IF
%>
Take out the statement and it everything works fine. Tried Dim, As String, Len, etc. Same error.
SQL is calling stored proc. Using Dreamweaver MX 2004.
<%
IF (rsRoomRoster.Fields.Item("RoomHoldDate").Value IS NOT NULL) AND (rsRoomRoster.Fields.Item("AdmissionDate").Value IS NULL) THEN
Response.Write("<td>")
Response.Write(rsRoomRoster.Fields.Item("ResName").Value)
Response.Write("Room on Hold")
Response.Write("</td>")
ELSE
Response.Write("<td>")
Response.Write(rsRoomRoster.Fields.Item("ResName").Value)
Response.Write("</td>")
END IF
%>
Take out the statement and it everything works fine. Tried Dim, As String, Len, etc. Same error.
SQL is calling stored proc. Using Dreamweaver MX 2004.