我在标准表达式中收到错误3464数据类型不匹配的信息,但是我无法离开它是什么问题???
Dim strsql As String
strsql = "select * from Shift where DFail Between " & txtVal1 & " and " & txtVal2
Me.RecordSource = strsql
您会错过单引号:
strsql = "select * from Shift where DFail Between '" & txtVal1 & "' and '" & txtVal2 & "'"
请记住,该文本是从左到右排序的,例如:1, 12, 2, 20
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句