I tried that but it keeps putting square brackets around the vbCrLf?Code:& vbCrLf
Yes, on a textbox on a form.Where is this? An expression for the ControlSource of some control on a form or report?
That did it!vbCrLf is a VBA constant. The Expression Service does not know about those. Replace with:
=[City] & Chr(13) & Chr(10) & [Zip]
The expression service *and* VBA know about the Chr function.
Pardon me for jumping in, but I don't understand how you're getting a comma and an extra space when you're not even using them for either address. Instead, you are using the comma after [City] and the extra space after [State].Perfect! One last small item. How can I get rid of the comma (", ") and the extra space (" ") if both Address/s are null?
Again, I'm still confused. If there are no addresses nor city nor state, then what else is there that it's now on "one line?"It gets rid of the comma and the extra space but everything is on one line now.