you don't need to use code to do that. I did this from Crystal Report Wizard. On the report, right click and chose Report Expert. Just play with that...