Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on Properties in a Form?? 1

Status
Not open for further replies.

quest4

Technical User
Aug 27, 2001
735
US
I have a form, the Default View is set to Continuous Form. Is there any way to set the ForeColor individually for each of the text box fields? I know it can be done in Single Form, but I can't use that. Thanks to anyone who answers.
 
Quick answer: nope, can't do it.

Long answer: How badly do you need it? From experience, I've found that it just isn't worth the headache of trying to get it to work. Here is a link to a database that someone wrote to demonstrate this trick. It didn't work on my computer, but some other programmers here have said it works on theirs. Maq B-)
<insert witty signature here>
 
Thanks alot, I will take a look at it and try and determine how be of a headache it is.
 
Hi...
What's the problem?
Why can't you go to the property sheet for each text box and set the fore color to whatever you like? I do it all the time. (Access2000)
:) Gus Brunston
An old PICKer
padregus@home.com
 
Ok...
Maybe I misunderstood. Did you mean &quot;Can you set the fore color individually for each record?&quot; You can certainly change the fore color of each text box as I said. But looking at the page suggested by Maquis, I see that you may not want just to change the fore color for each text box, but you may want different fore colors for different records.
I have a subform that displays transactions like a check register. Abutting all the text boxes (i.e., they are cotangent) I change the back color for all the records for each month, depending on whether the month number is odd or even. You can format the fore color (or back color) &quot;conditionally&quot; based on something like odd or even primary keys (autonumber, or ?), which would give you alternating blue and beige, or whatever, like QuickBooks.
Hope this helps, or if I don't understand the question, maybe I need the help! Gus Brunston
An old PICKer
padregus@home.com
 
Replace &quot;cotangent&quot; with &quot;contiguous&quot;! Arggh! :~/ Gus Brunston
An old PICKer
padregus@home.com
 
gusbrunston, Thanks for the response. Bassically we are just trying to change the color of the text, which is ForeColor, when a certain reason comes up. This is purely cosmetic, making it easier to spot employees who missed work. We have already brought down the database and are startingto play with it. Thanks again for the response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top