Re: Rotating text

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 02/22/04


Date: Sun, 22 Feb 2004 16:59:15 +0800

Try:
    Split([YourNameField], ":")(1) & " " & Split([YourNameField], ":")(0)

In older versions, you would need to use a InStr() to locate the colon, with
Left(), Mid(), Len(), and IIf().

-- 
Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Bill Smith" <anonymous@discussions.microsoft.com> wrote in message
news:1459d01c3f920$87a086e0$a001280a@phx.gbl...
> In my tables, names are held as surname followed by a
> colon followed by first names.  So William George Smith is
> stored as Smith:William George.
>
> When the names appear in  reports, I need to 'rotate
> around the colon' to print William George Smith.
>
> My understanding is that there is a function which will
> return a string character by character until a specified
> character is encountered.  This sounds promising - or
> perhaps there's a better way.
>
> Thanks for any help.
>
> Bill Smith


Relevant Pages

  • Re: Problem with PRINT REPORT TO PDF
    ... perfect by the time it gets to the CONVERTtoPDF function call. ... The colon -- character colon ':' -- is not legal to be used in a file name. ... You'll find that Windows won't let you create a file with that character in its name, nor rename a file so that its name contains that character. ...
    (microsoft.public.access.modulesdaovba)
  • RE: tab align with a colon?
    ... table, do not insert a tab character to indent the text, only add the decimal ... you use this type of tab stop, you must align the numbers around a decimal ... Please don't tell me to use a point instead of a colon because ...
    (microsoft.public.word.tables)
  • Re: JSP substring and trim dont work properly
    ... If you were using Soren's code then your "space" character is not an ASCII space but a single character that looks like the two character sequence ": " (colon, ... As I said, I think it's best to cut and paste code into news group postings, not re-type them. ... public class NonAscii { ...
    (comp.lang.java.programmer)
  • Re: [xnews] set score and move message
    ... sensitive when you use the colon after "Subject". ... sensitivity, remove the colon. ... % Kills any subject header without one lowercase ... % character. ...
    (news.software.readers)
  • Rotating text
    ... around the colon' to print William George Smith. ... return a string character by character until a specified ... This sounds promising - or ... Bill Smith ...
    (microsoft.public.access.reports)