>Hello Cetin:
>Thanks for you help.
>
>I use this replace key meathed,but in some case it failure.
>For exapmle if the grid recordsource is change in the same grid ,the meathed is invalid.
>
>It's why?
>
>
>
>
>Thanks.
I'm not sure I understand what you're saying especially what 'meathed' means. As far as I understand you have the code in controls, as soon as you change the recordsource grid rebuilds itself with its own controls. To prevent it first set recordsource to null or empty string ('').
Cetin