>>>When I pack a dbf in a grid I loose all grid properties: I have to set, in code, a new records source, a new columncount and so on. Is there a command to save all these values in a variable, before packing?
>>>If yes, what is the statement?
>>>Thanx in advance
>>
>>Just set the grid.recordsource = '' before packing, and set it back to source after...
>
>Also you need to set again Column.ControlSource if the default field order in the record source is not what you need to see in the grid.
True, I was only generalizing...you may also need additional re-settings for things like containers, current controls, etc...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.