How to test null value

Programming

Registered User.
Local time
Today, 04:37
Joined
Jul 5, 2018
Messages
20
the following code gives me error if the text box is empty

Dim JobDescription_var as String
JobDescription_var = Me.JobDescription

I think I should use Nz but I don't know how.
Please help.
 
JobDescription_var = nz(Me.JobDescription, "")

or

JobDescription_var = Me.JobDescription & ""
 
the following code gives me error if the text box is empty

Dim JobDescription_var as String
JobDescription_var = Me.JobDescription

I think I should use Nz but I don't know how.
Please help.

Ever heard of Google?
Search here
 

Users who are viewing this thread

Back
Top Bottom