Text and number manupilation

Posted on 2012-08-31
Last Modified: 2012-08-31
I am trying display the following format as a Header in each group : # 1 (54) with the following formula :
"# " & {#GroupCounter} & " (" & GroupName ({ContractParkerMovements.UserNo}) & " )"
*(GroupCounter is running total that counts each time the group changes)

but keep getting the following result : # 1.00 (54)

How do I manipilate the GroupCounter (or for any number) not to show as a decimal but rather just as a 1
Question by:John-S Pretorius
    LVL 100

    Accepted Solution

    Try this

    "# " & CStr({#GroupCounter},0,"") & " (" & GroupName ({ContractParkerMovements.UserNo}) & " )"

    This should also work

    "# " & ToText({#GroupCounter},0,"") & " (" & GroupName ({ContractParkerMovements.UserNo}) & " )"

    LVL 39

    Expert Comment

    by:Kyle Abrahams

    Author Closing Comment

    by:John-S Pretorius
    Thank you, I used :
    "# " & ToText({#GroupCounter},0,"") & " (" & GroupName ({ContractParkerMovements.UserNo}) & " )"

    which worked perfect

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now