When I feel clever, I need to tell you so you can tell me if I'm wrong. I use Prefix, FName, MName, LName & Suffix concatenated into FullName. This is for data that continues to be entered from time to time. Trim works to get rid of the extra spaces if there is no Prefix or Suffix, and now Replace gets ride of the extra space if there is no MName. However, for the Trim function I concatenated all five fields and called it X, then used Replace on X to convert two spaces to one. I think it works!!! Do you see a problem?
Reply from Alex Hedley:
It's hard to cover every option but trim is a good way of getting rid of it. You could have a load of IIF statements Or you could use the + instead of &
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 25.