Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with a possible Null in a text string

Status
Not open for further replies.

hpl2001

Programmer
Dec 18, 2001
105
CA
Hello:

I have this line in the update code of a form:

Me.txtTrackingInfo = "Reactivated: " + Me.cboFacility + "/" + Me.txtTransferNumber + "/" + Me!frmBoxSub![Schedule Number] + "/" + Me!frmBoxSub!Location + "/" + Format(Now, "yyyy-mm-dd") + "/" + Environ("Username") + vbNewLine + Me.txtTrackingInfo

Sometimes the Me!frmBoxSub!Location field does not have any information in it. When this is the case, my entire txtTrackingInfo field goes blank. How can I deal with the possibilty that this Location field might be empty?

TIA!

Holly
 
Use the & operator instead of +

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top