John,
Thisform.Grid.Recordsource ="" will leave code intact also. I had some code in the header.click() method, that disappeared when I modified Recordsource. Code was maintained by setting source to "" first.
PF
>Try this...
>
>Prior to changing the Recordsource.... use code like this:
>
>Thisform.Grid.Recordsource = ""
(On an infant's shirt): Already smarter than Bush