>I did it before but it did not work because for same Itemno I have more than one and grid by this command will show me just the first one
Do you have a UNIQUE index by any chance? Can you post your index expressions here?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison