Can Shrink where data is spaces

M

mscertified

How can I make 'can shrink' work when the data contains spaces? I have no
control over the data since it comes from a mainframe system. I tried the
following but it gave me #Error

=IIf(Trim([Str2])='',Null,[str2])
 
M

Marshall Barton

mscertified said:
How can I make 'can shrink' work when the data contains spaces? I have no
control over the data since it comes from a mainframe system. I tried the
following but it gave me #Error

=IIf(Trim([Str2])='',Null,[str2])


=Trim(str2) should be sufficient.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top