Is there any way to set the ( where n is" " ) part to a formula or parameter? I understand you can hard code it here , but I need that to be able to change it by a parameter. Meaning if one time the user wants it for to return 5 and the next time 50( they can just change the parameter value , with out having crystal )? Or is there away to create a formula to do this?