To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Sep 21st, 2006, 07:07 AM   #1
obscuregirl
Lively Member
 
Join Date: Aug 06
Location: UK
Posts: 96
obscuregirl is an unknown quantity at this point (<10)
Resolved [RESOLVED] [2005] Changing format of a Parameter Field in Crystal Report

Hi

I have logged this on the Crystal Forum but I'm not getting any answers there so thought I'd try this one!

I'm trying to set up a report (through Visual Studio 2005) that has a parameter field that is a year e.g. 2004, with hardcoded values. I've tried setting it up as a Number so that I can manipulate it as a number in the Record Selection Formula e.g. 2004 + 1. The problem I'm having is that the Parameter Field Editor converts 2004 to 2,004.00!

Is there any way of forcing the format to be 2004?

Thanks.
obscuregirl is offline   Reply With Quote
Old Sep 21st, 2006, 09:20 AM   #2
bmahler
Frenzied Member
 
bmahler's Avatar
 
Join Date: Oct 05
Location: Somewhere just west of the Atlantic
Posts: 1,564
bmahler is a jewel in the rough (300+)bmahler is a jewel in the rough (300+)bmahler is a jewel in the rough (300+)bmahler is a jewel in the rough (300+)
Re: [2005] Changing format of a Parameter Field in Crystal Report

Why not pass in the date parameter when generating the report instead of hardcoding it.

Otherwise, if you ar using a number you can set a custom format to remove the comma and decimal places like so...


Set the decimals to 1
the rounding to 1 and uncheck the thousands seperator and you number should be 2004
__________________
Boooya
  • Visual Studio 2008 Professional
  • Don't forget to use [CODE]your code here[/CODE] when posting code
  • Don't forget to rate helpful posts!
  • If you're question was answered please mark your thread [Resolved]

Code Contributions:
PHP
PHP Image Gallery v1.0PHP Image Gallery v2.0
VB 2005
Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


Useful Links: (more to come)
MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds
bmahler is offline   Reply With Quote
Old Sep 22nd, 2006, 11:06 AM   #3
obscuregirl
Lively Member
 
Join Date: Aug 06
Location: UK
Posts: 96
obscuregirl is an unknown quantity at this point (<10)
Re: [2005] Changing format of a Parameter Field in Crystal Report

Thanks, that's working great now!
obscuregirl is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:33 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.