Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maths

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
I have a problem working out the formula for the following.

I get a set of records eg total number of records is 123

I then need to process them in groups of twenty (thats fine, i am dispaying the data in a grid).

What I need to be able to do is jump to the last 3 as I have a button that says "go to end". How do I work out that i need only to display 3 when the "go to end" button is selected
 
Use the mod function. It return the rest after division:

123 mod 20 = 3


Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top