Sql 如何修复ms access代码中的此编译错误?
我有一句话:Sql 如何修复ms access代码中的此编译错误?,sql,ms-access,Sql,Ms Access,我有一句话: Me.Combo103 = "SELECT profile from table where profile < '" & CAST(me.width AS DOUBLE) & "'" Me.Combo103=“从profile
Me.Combo103 = "SELECT profile from table where profile < '" & CAST(me.width AS DOUBLE) & "'"
Me.Combo103=“从profile<'所在的表中选择profile”&CAST(Me.width为双精度)&”
它给了我一个错误:编译错误:应为:列表分隔符或)
你知道是什么导致了这个问题吗?
提前感谢您。无论您想实现什么目标,都有几个问题:
Me.Combo103.RowSource = "SELECT profile from table where " & BuildCriteria("profile", dbDouble, "<" & CStr(Me.Width))
Me.Combo103.RowSource=“从配置文件所在的表中选择配置文件”&BuildCriteria(“profile”,dbDouble”,对于MS access,使用cdbl(Me.width)
而不是CAST(Me.width为DOUBLE)
试试这个Me.Combo103=“从配置文件所在的表中选择配置文件”&cdbl(Me.width)
CAST
在Access VBA中不存在。您可能正在查找CDbl()
。