Ricardo Posted November 18, 2002 Posted November 18, 2002 Hi All, I have db which the view field is colour coded depending on the age of a job. It works fine until the age of the job (days in production field) goes beyond 9 days old and less then 20 days old. The filed is a calculation the result being a container. the calc looks to a container field with 4 repetitions all containing different colour blocks and depending on the result displays the colour of the repetition. here is the calc Case( Job Done = "1", GetRepetition(Container, 3), Days in Production >= "3", GetRepetition(Container, 1), Days in Production = "2", GetRepetition(Container, 4), Days in Production < "2", GetRepetition(Container, 2), "") how can i fix it so that when it is over 10 days and still in 'Production' it gets rep 1 and so on. At the minute if the job is 10 days old it defaults to rep 2. I have messed about setting the number of days in Production field with decimals etc etc but no joy. the db is created in FM Pro 6 Thanks in advance, ricardo.
jasonwood Posted November 18, 2002 Posted November 18, 2002 Just a thought... is your "days old" field a text field or a number field? alphabetically, 10 is less than 2. You need a number field.
Ricardo Posted November 19, 2002 Author Posted November 19, 2002 i've worked it out using the Int(number) function within the case function. Thanks for you help. ricardo.
Recommended Posts
This topic is 8040 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