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^
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only