473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Change text colour in table

I need to change the colour of text values within a table. For example
"Software" being red, "Lab Software" blue etc.
To change colour of number values simply, 1[red], entered into the
format section of design view makes the number 1 red. But dosnt work
for text.
Can anyone help.
Nov 13 '05 #1
4 3766
You need to use forecolor property in your code.
Nov 13 '05 #2
Yes, it's not very clear in the help for Format, but for text you have to
set the format to [Red]@. The @ bit actually displays the text.

On 13 Oct 2004 08:00:41 -0700, Dwight <dw*******@hotmail.com> wrote:
I need to change the colour of text values within a table. For example
"Software" being red, "Lab Software" blue etc.
To change colour of number values simply, 1[red], entered into the
format section of design view makes the number 1 red. But dosnt work
for text.
Can anyone help.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 13 '05 #3
I wasn't aware you could change colors of anything in a table. Why
would you want to do this anyway, since users should never see the
table anyway.

dw*******@hotmail.com (Dwight) wrote in message news:<f0*************************@posting.google.c om>...
I need to change the colour of text values within a table. For example
"Software" being red, "Lab Software" blue etc.
To change colour of number values simply, 1[red], entered into the
format section of design view makes the number 1 red. But dosnt work
for text.
Can anyone help.

Nov 13 '05 #4
Thanks this has helped,
But do you know how i can change the colour of multiple values. I.E i
want "Software" to be red, "Lab Software" to be gren etc. When i enter @
it changes all the values to that colour.
When using numbers this works.(in the format property)
1[red];2[green];3[blue]. So then each number is colured differently.
Just can't do it with text.
Any help would be appreciated.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: kiko | last post by:
How can I change the output text colour? Here is part of example source code: .... textcolor(4); cout << "text"; .... The "cout" doesn't work with "textcolor". I don't want to use "cprintf"....
3
by: Geoff | last post by:
Being new to javascript, I'm stuck on what is obviously a simple thing. I have a script which finishes with a document.write statement to print the result to the screen. This is all working...
1
by: Robert T | last post by:
Hi I would like to change the title property(the hint displayed when you move over it) of an elements colour/and or text size. Is this possible Can I change the title property's (hint on...
7
by: garyusenet | last post by:
I'm using krypton toolkit which has allowed me to make a cool looking form. However, when I set my textbox to disabled it is 'greyed' out. The grey colour isn't in keeping with the office 2007...
4
by: helraizer1 | last post by:
So far I have function color() { var box = document.getElementById('message'); box = box.style.color = "#FF0000"; }
1
by: maheshgupta0248 | last post by:
Hi All, I have created a dialog based application in vc++ which includes some buttons.I want to give different colours for their borders and also for the text on them.Can u pls provide solution for...
6
by: gavy7210 | last post by:
hello i am using struts 1.2,Eclipse Platform Version: 3.4.2,mySql 5.0.1,jdk 1.5.. i have a login form(jsp) in which a user logs in,in case he doesnt enter his username and/or password an error...
4
by: neelsfer | last post by:
I have specific medicines in a table consisting of about 3000 records, that cause problems when its captured at stocktake every year. My question - can i change the colour of these spedific...
0
by: Sushil Mishra | last post by:
Hi guys, I'm new to Visual basic. M using vb studio 2010. started it today. Learnt to build a notepad using rich text box.Now i want to change the colour of specific words/syntax as soon as they...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.