ASP 时间传递问题(急!!!) 在线等
<%Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_user_STRING
Recordset1.Source = "SELECT * FROM kaoqin WHERE sID = '" + Replace(Recordset1__MMColParam, "'", "''") + "' and myDate = cdate ( '" + Replace(Recordset1__Time, "'", "''") + "')"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
上面的SQL语句错在了哪里?传递时间变量时,要在SQL里用什么函数把字符型转变为日期时间型的呢?谢谢
急急急急
[[it] 本帖最后由 cong8784 于 2008-5-3 14:36 编辑 [/it]]