rivet Posted September 10, 2003 Posted September 10, 2003 Here is my math question. If I find a group of records I would like to count them in groups of nine. So say I find 30 records my list will return. 1 2 3 4 5 6 7 8 9, 1 2 3 4 5 6 7 8 9, 1 2 3 4 5 6 7 8 9, 1 2 3 My solution is: Mod(Status(CurrentRecordNumber),9) But I get a zero when it hit the multiples of 9 so with out a condition is there a clean solution so I get a 9 instead of a zero.
ernst Posted September 10, 2003 Posted September 10, 2003 Try: Mod(Status(CurrentRecordNumber) - 1 ,9) + 1 Ernst
Fitch Posted September 10, 2003 Posted September 10, 2003 If (Mod(Status(CurrentRecordNumber),9), Mod(Status(CurrentRecordNumber),9), 9) There's probably a math-wiz way to do it that's "cleaner," but it's better than nothing.
Recommended Posts
This topic is 7743 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