Check for NULL Values

by Linda Quinn

Close Window



Public Function StrNulls(vntField As Variant) As String

If IsNull(vntField) Then
StrNulls = " "
Else
StrNulls = Trim$(CStr(vntField)
End If

End Function


USAGE:     txtAddress.Text = StrNulls(rs!Address)





=================================================================
This content was created by Linda Quinn of LQNet.

See http://www.lqnet.com for a great collection of articles on this and other topics.

=================================================================
Copyright © 2006-2008, LQ Systems,Inc. All rights reserved.


====================================================================
Want an expert to help with your project?    LQ Systems, Inc.   Business Solutions
====================================================================