Results 1 to 2 of 2

Thread: Format telephone field - need help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    Calgary
    Posts
    273

    Format telephone field - need help

    My Crystal report version is 5.1

    I need to format a fiel number and it is a telephone number. What is the correct formula or function to format this field in my version.

    The data fiels belong to a table from msaccess or mdb

    actually the number is printed like this 2136407658
    I need in my report to print like this (213) 640-7658

    Someone gave me this example but this is not working

    Picture("2136407658","(XXX) XXX-XXXX")

    I have not this picture fuction in my Crystal report Program, I have only number group Fucntion.
    mannyso

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    try this..

    '('+left(totext(2136407658),3)+') '+mid(totext(2136407658),4,3)+'-'+right(totext(2136407658),4)

    ''Replace the number with ur field..

    hope this helps..
    ksm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width