Try this...
Prior to changing the Recordsource.... use code like this:
Thisform.Grid.Recordsource = ""
Then, change the new recordsource. I know attributes will stay in tact.. As for code, I have not tested to see if that persists, but it is a good bet it will..
Good luck
>Hi!
>
>When I changed the RecordSource of grid, codes in Click event were gone away. I have known it before. So, I made my class of grid and I put some codes in Click event. I created a form and add my grid class in it. The result was same as the prior result. codes were blanked.
>Is there a solution of keeping codes even if the recordsource is changed?
>
>Merry Christmas!! ^o^
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement