>Thanks for your help, that has solved my problem. >by the way I have to change the initial value of the variable to 1 so that the counting will start from 1. > >Thanks again
Cool! Glad I could help.
Cathy Pountney, Microsoft Visual FoxPro MVP Memorial Business Systems, Inc. (www.mbs-intl.com)