Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 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 November 21st, 2007, 04:01 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Fore_color in calculated members

Hi
I want to display -ve numbers in red and +ve numbers in black, when the user is trying to view the calculated member value.

Please help me by providing me the syntax for the same since its urgent.



Regards,
Preetham
 
Old November 23rd, 2007, 07:33 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Include this in ur Expression for displaying font color

=IIf( someValue > 0, Black, Red)

Rgds,
Preetha






Similar Threads
Thread Thread Starter Forum Replies Last Post
Members of File System Coby Access VBA 5 April 25th, 2007 03:07 PM
Members list happygv Forum and Wrox.com Feedback 9 April 10th, 2007 11:33 AM
Listing members quiksilverhg Excel VBA 1 October 6th, 2005 05:09 AM
Private members in constructors shortt BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 May 16th, 2005 03:03 PM
Discount For P2P Members? anand_thakur Forum and Wrox.com Feedback 0 January 28th, 2005 09:05 AM





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