Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 12th, 2005, 08:56 PM
Registered User
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default formatting integer field

I am trying to create a report that shows 2 [u]integer</u> fields concatenated using a formula. The problem is that when I use a formula to concatenate these fields it shows the data as 37.00. However, if I drag the field directly into the report it shows as 37. Is there any function that I can use in my formula editor to make the data show without the decimal point and the 2 decimal places?

My formula reads: {customer.weeknumber} & "-" & {customer.unit} & "-0"
The result should read: 34-5467-0

Thanks for any help on this.
Old October 13th, 2005, 12:27 PM
Authorized User
Join Date: Dec 2004
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts

totext({customer.weeknumber},0,'')& "-" & totext({customer.unit},0,'') & "-0"

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone # field formatting! Nostromo77 ASP.NET 2.0 Basics 3 December 19th, 2006 02:02 PM
Make user entered field an integer sswingle Classic ASP Basics 4 April 10th, 2006 10:09 PM
formatting a text field in sql server ttbhandari SQL Server DTS 1 October 2nd, 2004 01:06 AM
Formatting Querystring Field Name realgone_ VBScript 4 September 23rd, 2004 07:52 AM
Formatting a Field Containing a Time to AM/PM taleriana XSLT 2 March 16th, 2004 11:10 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.