03-14-2007, 03:09 PM
Apoc Wrote:Here's how I'd do it but I an Excel person who's used to If statements so that may color my results.
If num_results > curr_page * res_per_page then res_per_age else num_results - ( (curr_page - 1) * res_per_page)
That's a ternary operator num nuts.
