Conditional formatting

G

Guest

I know there are many subjects on this, but can't find the answer.
I have several text boxes with number values in it. The names of these text
boxes have the current year in the name.
Example of all the text boxes on my form:
2004 grants
2005 grants
2006 grants
ETC.....
I want to format the text box values in red if the current year is simialir.
Example i want "2005 Grants" to be highlighted for this year. Next year i
want the 2006 Grants box to be highlighed on the form. ETC
THANKS
 
R

Rick B

I would think you would use something like...

left([yourfieldname],4) = year(date())
 
G

Guest

Thank you. One more quesiton. DO you put this in he before update event or?

Rick B said:
I would think you would use something like...

left([yourfieldname],4) = year(date())

--
Rick B



Sue said:
I know there are many subjects on this, but can't find the answer.
I have several text boxes with number values in it. The names of these text
boxes have the current year in the name.
Example of all the text boxes on my form:
2004 grants
2005 grants
2006 grants
ETC.....
I want to format the text box values in red if the current year is simialir.
Example i want "2005 Grants" to be highlighted for this year. Next year i
want the 2006 Grants box to be highlighed on the form. ETC
THANKS
 
R

Rick B

No, you put it in the "conditional formatting" dialog box. No coding
needed.


--
Rick B



Sue said:
Thank you. One more quesiton. DO you put this in he before update event or?

Rick B said:
I would think you would use something like...

left([yourfieldname],4) = year(date())

--
Rick B



Sue said:
I know there are many subjects on this, but can't find the answer.
I have several text boxes with number values in it. The names of
these
text
boxes have the current year in the name.
Example of all the text boxes on my form:
2004 grants
2005 grants
2006 grants
ETC.....
I want to format the text box values in red if the current year is simialir.
Example i want "2005 Grants" to be highlighted for this year. Next year i
want the 2006 Grants box to be highlighed on the form. ETC
THANKS
 
G

Guest

thanks but that didn't work in the expression


Rick B said:
No, you put it in the "conditional formatting" dialog box. No coding
needed.


--
Rick B



Sue said:
Thank you. One more quesiton. DO you put this in he before update event or?

Rick B said:
I would think you would use something like...

left([yourfieldname],4) = year(date())

--
Rick B



I know there are many subjects on this, but can't find the answer.
I have several text boxes with number values in it. The names of these
text
boxes have the current year in the name.
Example of all the text boxes on my form:
2004 grants
2005 grants
2006 grants
ETC.....
I want to format the text box values in red if the current year is
simialir.
Example i want "2005 Grants" to be highlighted for this year. Next year i
want the 2006 Grants box to be highlighed on the form. ETC
THANKS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top