神秘的HAVING子句

时间:2009-03-24 19:32:09

标签: ms-access

任何人都可以从Access数据库中解释以下HAVING子句吗?所有'0'格式的格式如何返回一串空格?

HAVING Format([PerNr],'0000000') <> '       '

1 个答案:

答案 0 :(得分:1)

如果字段值设置为空格......

VBA:

Dim x As String
x = "       "
MsgBox "x = " & Format(x, "0000000") & " : Len(x) = " & Len(Format(x, "0000000"))