I have a report in my database that prints reminder letters for appointments. The client address details are imported from another database with the fields HOUSE_NAME, HOUSE_NO, ROAD_NAME, LOCAL_NAME, COUNTY_NAM, COUNTRY_NA and POSTCODE. However, I wish to work with these so I can produce a basic 5 line address on the letters (the COUNTRY_NA is not required). As sometimes, not all of the fields have anything in them, I wish to push together the fields that have to avoid spaces in the letter. I tried this in the query the report is based on but that still leaves spaces, and also when I add the ROAD_NAME to the end of HOUSE_NO, if HOUSE_NO is a null value, ROAD_NAME disappears too. I could probably sort out both of these problems using VB code.
So my question is, where do I write the VB code, if that's what I should be doing, and if it isn't what is a better way to achieve my tidy addresses?
So my question is, where do I write the VB code, if that's what I should be doing, and if it isn't what is a better way to achieve my tidy addresses?