jdenver Posted August 5, 2015 Posted August 5, 2015 Ive have the following script to create an address block from the individual fields in a record. Sometimes there is not data in the 'line_address_2' and this script will produce a blank line. Can someone advise me on what to add so as the 'line_address_2' field is checked for data and if blank then don't create a blank line, whereas if it contains data the data will be added. Thanking you in anticipation. title & " " & firstname & " " & surname & ¶ & houseno_name & " " & line_address_1 & ¶ & line_address_2 & ¶ & town & ¶ & county & " " & postcode
doughemi Posted August 5, 2015 Posted August 5, 2015 (edited) title & " " & firstname & " " & surname & ¶ & houseno_name & " " & line_address_1 & ¶ & if (not isEmpty(line_address_2); line_address2 & ¶; "") & town & ¶ & county & " " & postcode Edited August 5, 2015 by doughemi
mr_vodka Posted August 5, 2015 Posted August 5, 2015 List ( title & " " & firstname & " " & surname; houseno_name & " " & line_address_1; line_address_2; town; county & " " & postcode )
Lee Smith Posted August 5, 2015 Posted August 5, 2015 (edited) See if this thread helps best address There are several choices. Edited August 5, 2015 by Lee Smith
jdenver Posted August 7, 2015 Author Posted August 7, 2015 Thanks guys, very helpful, Ill try these suggestions over the weekend
Recommended Posts
This topic is 3395 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now