GoHogs Posted January 19, 2007 Posted January 19, 2007 I can't seem to get this to work. A good example is having a conference affiliation automatically assigned to a University based on the date a game is played. Here is a sample of what I have for two schools. Case ( Team = “Univ. of Arkansas” and Date > 8/1/1992; “Southeastern Conference”; Team = “Univ. of Arkansas”; “Southwest Conference”; Team = “Florida International” and Date > 8/1/2005; “Sun Belt Conference”; “Not Division 1A”) Team and Date are the field names. However, the date part of the function doesn't seem to work. Any ideas?
comment Posted January 19, 2007 Posted January 19, 2007 It won't work, because 8/1/1992 is not a date. It's "8 divided by 1, divided by 1992". Best to use the Date() function to specify a date in a formula. Putting your data in fields, instead of hard-coding them into field definitions, is even better.
mr_vodka Posted January 19, 2007 Posted January 19, 2007 I would recommend that instead of the case statement, you move towards a relational model such as this. college_sports.zip
GoHogs Posted January 19, 2007 Author Posted January 19, 2007 I never stepped into the world of relationships and tables before! I guess its a good time to learn. Thanks
Recommended Posts
This topic is 6579 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