A AnnPhil Registered User. Local time Today, 07:12 Joined Dec 18, 2001 Messages 246 Aug 22, 2002 #1 How do i get this concatenated field to NOT leave a blank line if the Address2 field is empty? =[ClientName] & " " & [Clients.Address1] & " " & [Clients.Address2] & " " & [Clients.Town]
How do i get this concatenated field to NOT leave a blank line if the Address2 field is empty? =[ClientName] & " " & [Clients.Address1] & " " & [Clients.Address2] & " " & [Clients.Town]
Fizzio Chief Torturer Local time Today, 07:12 Joined Feb 21, 2002 Messages 1,884 Aug 22, 2002 #2 Use an if...then statement to check in code if the field is blank then generate the string dynamically.
Use an if...then statement to check in code if the field is blank then generate the string dynamically.
P pono1 Registered User. Local time Yesterday, 23:12 Joined Jun 23, 2002 Messages 1,179 Aug 22, 2002 #3 Or work with the iif function in a textbox... =IIf(IsNull([clients.address2]),[clientname] & " " & [clients.address1] & " " & [clients.town],[clientname] & " " & [clients.address1] & " " & [clients.address2] & " " & [clients.town]) Regards, Tim
Or work with the iif function in a textbox... =IIf(IsNull([clients.address2]),[clientname] & " " & [clients.address1] & " " & [clients.town],[clientname] & " " & [clients.address1] & " " & [clients.address2] & " " & [clients.town]) Regards, Tim
BLeslie88 B Leslie Local time Today, 07:12 Joined May 9, 2002 Messages 228 Aug 22, 2002 #4 If all else fails..... You could use the nz([field], " ") function... I always use it as a last resort to assign values where there is nothing or NULL.... regards,
If all else fails..... You could use the nz([field], " ") function... I always use it as a last resort to assign values where there is nothing or NULL.... regards,