多记录集查询,某记录集不存在关联值报告80020009错误
asp吧
全部回复
仅看楼主
level 1
如下是我写的一个记录集查询
<td height="20" bgcolor="#1759AF"> </td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs("worker_bz")%></td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs("worker_name")%></td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs("worker_starttime")%></td>
<% response.write "<td height=""20"" align=""center"" bgcolor=""#1759AF"" class=""con"">" & datediff("yyyy",rs2("ndate"),date()) & "年</td>"%>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs("worker_dp")%></td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs("worker_postion")%></td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs2("ndate")%></td>
<td height="20" align="center" bgcolor="#1759AF" class="con"><%=rs1("dangers")%></td>
<td height="20" bgcolor="#1759AF"> </td>
当rs记录集有值的时候而rs2("ndate")里却没有值,就报告80020009错误,这个要怎么解决?
我原先用if not isnull(rs2("ndate")),但是仍然一样的结果。
有没有大神帮忙看怎么解决?
2016年06月26日 14点06分 1
1