Totes Posted December 5, 2006 Posted December 5, 2006 (edited) I really hate to bother everyone with such a newbie question, but this thing is getting the best of me and I am about to just give up on it. I have a date field and I want the date shown to turn red if it is within a 7day window, so the viewer can see that the date is approaching soon. I have tried the Date <= get(currentdate)+7 and change textcolor calculation but I get nothing. What am I doing wrong? Can the textcolor be used on a date field? Thanks James Edited December 5, 2006 by Guest
Genx Posted December 5, 2006 Posted December 5, 2006 (edited) Can text color be used in a date field.. yes Lets say you want it to go red if the date in the field "date" is within 7 days of today (remember, it has to be an unstored calculation, result date). Case( Get(CurrentDate) + 7 >= date ; TextColor( yourDateField ; RGB( 200 ; 0 ; 0 ) ; yourDateField ) Edited December 5, 2006 by Guest Fixed Calc Error
Totes Posted December 5, 2006 Author Posted December 5, 2006 (edited) Thank you for replying to my post. I am trying but I still have nothing good to report. I get an error of: this function cannont be found and it highlights TextColorAdd I took the Add part out and it took it, however the color did not change. I have the field set as an unstored calculation returning as a date. What am I missing? Update::: the date field is now showing a ?mark..I think I screwed something up. James Edited December 5, 2006 by Guest
Totes Posted December 6, 2006 Author Posted December 6, 2006 Still no luck...as soon as I set the calculation the date field suddenly becomes an unmodifiable field? I give up, this one has me thinking about drinking for a living
Genx Posted December 6, 2006 Posted December 6, 2006 ... I think you may be misunderstanding. But... for color to work, you were right, calc does have to be text, otherwise it should at least show the date... anyway, see the attached. tempo.zip
Totes Posted December 6, 2006 Author Posted December 6, 2006 Oh, I think I see...I was attempting to turn the "Date" field itself red. The "Date" field itself cannot be changed to red, a calculation of the field has to be shown in another field and that field will display the calculation of the "Date" Field in red...is that correct. James
Genx Posted December 6, 2006 Posted December 6, 2006 If you want the calculation to be unstored yes... And in your case, it has to be unstored for it to work.
Totes Posted December 6, 2006 Author Posted December 6, 2006 Thank you very much, I just learned in a few minutes what I was attempting to glean from 3 books. Thanks again, James
Genx Posted December 6, 2006 Posted December 6, 2006 These forums are good for that Not that i'm saying you shouldn't read..
Recommended Posts
This topic is 6563 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now