任何人都可以从Access数据库中解释以下HAVING子句吗?所有'0'格式的格式如何返回一串空格?
HAVING Format([PerNr],'0000000') <> ' '
答案 0 :(得分:1)
如果字段值设置为空格......
VBA:
Dim x As String
x = " "
MsgBox "x = " & Format(x, "0000000") & " : Len(x) = " & Len(Format(x, "0000000"))