建了两个网页
第一个网页:
<p>
请输入要查询的起始时间:
<input name="datetimebe" type="text" id="datetimebe" value="<%= DoDateTime((Recordset1.Fields.Item("day").Value), 3, -1) %>" size="23" maxlength="23" />
</p>
<p>请输入要查询的结束时间:
<input name="datetimeend" type="text" id="datetimeend" value="<%= DoDateTime((Recordset1.Fields.Item("dayy").Value), 3, -1) %>" size="23" maxlength="25" />
<input type="submit" name="Submit" value="查询" />
</p>
第二个网页:
记录集对话框中
sql:SELECT *FROM dbo.pingjiaend join dbo.numbername on dbo.numbername.number=dbo.pingjiaend.number join dbo.result on dbo.pingjiaend.result=dbo.result.result1
WHERE dbo.pingjiaend.datetimee > timebe and dbo.pingjiaend.datetimee < timeend
ORDER BY datetimee DESC
变量名:timeend 运行值:request.form("datetimeend")
变量名:timebe 运行值:request.form("datetimebe")
在浏览器中报错
又用cast()将变量转成日期型,还说字符串转成datetime时出错。
请各位老师帮忙,非常感谢!
第一个网页:
<p>
请输入要查询的起始时间:
<input name="datetimebe" type="text" id="datetimebe" value="<%= DoDateTime((Recordset1.Fields.Item("day").Value), 3, -1) %>" size="23" maxlength="23" />
</p>
<p>请输入要查询的结束时间:
<input name="datetimeend" type="text" id="datetimeend" value="<%= DoDateTime((Recordset1.Fields.Item("dayy").Value), 3, -1) %>" size="23" maxlength="25" />
<input type="submit" name="Submit" value="查询" />
</p>
第二个网页:
记录集对话框中
sql:SELECT *FROM dbo.pingjiaend join dbo.numbername on dbo.numbername.number=dbo.pingjiaend.number join dbo.result on dbo.pingjiaend.result=dbo.result.result1
WHERE dbo.pingjiaend.datetimee > timebe and dbo.pingjiaend.datetimee < timeend
ORDER BY datetimee DESC
变量名:timeend 运行值:request.form("datetimeend")
变量名:timebe 运行值:request.form("datetimebe")
在浏览器中报错
又用cast()将变量转成日期型,还说字符串转成datetime时出错。
请各位老师帮忙,非常感谢!