i,m trying to get a report/query to concatenate fields, place carriage returns after each field and print with no blank lines..... it drives me cwazzzzzzy!!
any ideas?
definatly does the concatenation now all i need isa the char for a carriage return and a space between concatenated filds...
so mrkimmole6foundrysquare
thanks again ken....
i'll use the chr bits as i havent a clue what you're on about asregards the vb bit....
....sorry i still use macros
but i'll hget there
ta again kimbo))))
er ken..... i get a square symbol when i use chr (13) or chr(10)
i've seen the square symbol come in in imported asci text before so mi guess i'm using the wrong symbol for a carriage return...
so far i,ve got....
=Trim([Home Address]) & IIf(Len(Trim([Home Address]))=0,"",Chr(13)) & Trim([Address]) & IIf(Len(Trim([Address]))=0,"",Chr(13)) & Trim([City]) & IIf(Len(Trim([City]))=0,"",Chr(13)) & Trim([State]) & IIf(Len(Trim([State]))=0,"",Chr(13)) & Trim([Zip/Postal Code]) & IIf(Len(Trim([Country]))=0,"",Chr(13)) & Trim([Zip/Postal Code]) & IIf(Len(Trim([Country]))=0,""
i'v now changed it using "is null rather than =0
so...
[x]=Trim([Home Address]) & IIf(Len(Trim([Home Address])) Is Null,"",Chr(13)) & Trim([Address]) & IIf(Len(Trim([Address])) Is Null,"",Chr(13)) & Trim([City]) & IIf(Len(Trim([City])) Is Null,"",Chr(13)) & Trim([State]) & IIf(Len(Trim([State])) Is Null,"",Chr(13)) & Trim([Zip/Postal Code]) & IIf(Len(Trim([Country])) Is Null,"",Chr(13)) & Trim([Zip/Postal Code]) & [Country]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.