rick fry Posted May 1, 2007 Share Posted May 1, 2007 I have a database containing 25 records. Each record has a numberfield ranging from 1 to 5. I want to create a new field which will be the field 1 contents plus 1. (Easy so far) however when we get to number 5 i want 5+1 to equal goback to 1 rather than six. any ideas? Link to comment Share on other sites More sharing options...
Raybaudi Posted May 1, 2007 Share Posted May 1, 2007 Case( field1 = 5 ; 1 ; field1 + 1 ) Link to comment Share on other sites More sharing options...
Raybaudi Posted May 1, 2007 Share Posted May 1, 2007 ... or: Mod ( field1 ; 5 ) + 1 Link to comment Share on other sites More sharing options...
rick fry Posted May 1, 2007 Author Share Posted May 1, 2007 Fantastic will give it a try in the morning Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6203 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