When Len([mycolname] & "") <> 0 'non-zero length
When Len([mycolname] & "") = 0 'zero length
VBA:If Len([mycolname] & vbNullString) <> 0 Then 'non-zero length
End If
If Len([mycolname] & vbNullString) = 0 Then 'zero length
End If
It makes for simpler query syntax and code than checking for both Null values and the Length of the text in the column.If [mycolname] & "" = "" Then 'zero length
If IsNull([mycolname]) = True 'zero length
for VBAWHERE Nz([mycolname],"") = ""
for queries?
If IsNull([mycolname]) = True 'zero length
Queries:
WHERE Nz([mycolname],"") = ""
The Nz is to be used in an Access query, the IsNull in the VBA.
The Len() function is more efficient than a string comparison.Sounds interesting. Can you expound on this?
Sounds interesting. Can you expound on this?
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
https://www.experts-exchange.com/questions/28235344/error-Could-not-update-currently-locked.html
On of the OP's last posts indicates a number of things that work and don't work. Several of these would resolve the problem, but like so many of the OPs other posts, it is about understanding, and I honestly cannot figure out why he is getting the error, given what works and doesn't.