True / False WHERE子句的VBA SQL字符串出错

时间:2014-07-01 16:09:48

标签: sql vba access-vba conditional-statements

我的SQL字符串一直出现数据类型不匹配错误。带复选框的访问表单,checked = true和unchecked = false。 (SQL表显示checked = 1且unchecked = 0)(访问表视图显示checked = -1和unchecked = 0)下面的字符串,任何人都可以协助吗?

strSQL = "SELECT * FROM dbo_" & Site & "_Employees WHERE Wednesday = 'TRUE' "

Set rst = dba.OpenRecordset(strSQL, dbOpenDynaset, dbSeeChanges)

0 个答案:

没有答案