>Hi Guys
>Cause i have a grid with recordsource from a table...
>And I also have created the keypress or double click inside the text1 in
>grid.....
>
>When i doubleclick the grid.... the procedure is functioning...
>
>But when i programmatically changes the recordsource from the table
>then the events keypress and double click is not functioning...
>
>How could that be....
>
>Is there any way to solve it...
When you change the recordsource, you reset the grid. You need to put the keypress/dblclick code in textbox classes, and then re-add the textboxes to the columns and change the CurrentControl property after changing the RecordSource. It's a pain in the neck, but it works.