First thing to do would be determine whether it's Null or zero-length
strings that are causing your problem. If it is ZLS, try
IIf(Len([ADDRESS1] & "") = 0,"",[ADDRESS1] & Chr(13) & Chr(10)) &
IIf(Len([ADDRESS2] & "") = 0,"",[ADDRESS2] & Chr(13) & Chr(10)) &
IIf(Len([ADDRESS3] & "") = 0,"",[ADDRESS3]
or even
IIf(Len(Trim([ADDRESS1] & "")) = 0,"",[ADDRESS1] & Chr(13) & Chr(10)) &
IIf(Len(Trim([ADDRESS2] & "")) = 0,"",[ADDRESS2] & Chr(13) & Chr(10)) &
IIf(Len(Trim([ADDRESS3] & "")) = 0,"",[ADDRESS3]
"Garry" wrote in message
Thanks Douglas just the job . . .=(Cstr(
Code:
) & " ")
One very last question
In an effort to keep columns tidy I run the following code to move data from
one column to an empty column as:
UPDATE [Client Data] SET [Client Data].Address1 = Trim([Address2]), [Client
Data].Address2 = Trim([Address3])
WHERE ((([Client Data].Address1) Is Null Or ([Client Data].Address1)=""));
etc etc
In my report the address label is
IIf(IsNull([ADDRESS1]),"",[ADDRESS1] & Chr(13) & Chr(10)) &
IIf(IsNull([ADDRESS2]),"",[ADDRESS2] & Chr(13) & Chr(10)) &
IIf(IsNull([ADDRESS3]),"",[ADDRESS3]
etc etc
There are still blank address lines in address block though
I have checked the fields and they appear to be empty
Is it possible to fix this
Garry
[QUOTE="Garry"]
Right("00000" & [CountOverGroup] , 5) is the way to go thanks very much
This is weird though
If I place a text box =[Ref] I get ABC
If I place a text box =([Ref] + " ") I get ABC
If I place a text box =[Code] I get 223
if I place a text box =([Code] + " ") I get error
what could be wrong
Garry
[QUOTE="Garry"]
Thanks very much
I cannot get the Right([CountOverGroup] & "00000", 5) to work though
The result is 00000 for some reason
Cheers, Garry
[QUOTE="Garry"]
Hi, I have a text box thus
=[Ref] & " " & [Code] & " " & [CountOverAll] & " " & [CountOverGroup] &
" " & [Marker]
This results in ABC 223 21 6 *
I want CountOverAll and CountOverGroup to be 5 digits
Result I require is ABC 223 00021 00006 *
Also if Ref or Code is null to close up the string so there are no
excesive spaces
Thank you
[/QUOTE]
[/QUOTE]
[/QUOTE]