|
下面语句运行时错误 '13' 类型不匹配 ,搞了一个晚上都弄不通,帮忙分析一下那句出问题了 谢谢!
Dim syRecset As DAO.Recordset
Dim syre As Recordset
Dim Teat As Integer
Teat = 6
strsql = "SELECT Service_流程.流程, Service_登记.预约时间,Service_登记.执行情况"
strsql = strsql & " FROM Service_登记 INNER JOIN Service_流程 ON Service_登记.执行情况 = Service_流程.ID"
strsql = strsql & " WHERE (((Service_登记.执行情况)<>" & Teat & "))"
strsql = strsql & " ORDER BY Service_登记.预约时间, Service_登记.执行情况;"
Set syre = CurrentDb.OpenRecordset(strsql ) '运行时错误 '13' 类型不匹配
If syre.EOF = False Then
syre.MoveFirst
syre.MoveLast
End If
…… |
|