ACC: Concatenating Fields in a Text Box to Remove Blank Lines (95917)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q95917 Novice: Requires knowledge of the user interface on single-user computers.
SUMMARY
This article describes how to concatenate multiple fields for use in a form
or report. This is especially useful in a mailing label report when some
fields are Null or Empty. Null fields can cause blank lines to be printed
on a report. Additionally, from a form, you may want to be able to copy and
paste an entire name and address into another application, such as
Microsoft Word for Windows.
Using the IIf() and IsNull() functions, you can determine if a field is
blank. If a field is blank, it returns an "empty" value. Chr(13) and
Chr(10) are used to add a return and a line feed character to the text box.
REFERENCES
For more information about using IIf() with Null values, type "IIf" in the
Office Assistant, click Search, and then click to view "About combining
text values from fields when some fields contain no data."
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbhowto kbusage KB95917 |
---|
|