>>Hi Doru,
>>
>>Actually, your question helped me also. Today I tried the same approach as you did and I found, that changing DS in a program lead to form Grids loosing their RecordSource. If I use class (not a program), I don't encounter this problem. Therefore I switched to class.
>
>If a class works for you, that's great. But if you ever do switch datasessions in code, the best bet is to put it back to where you found it when you're done, before you return from your code.
Hi Fred,
Of course, I do this in my code. But this is not enough, as I found.
If it's not broken, fix it until it is.
My Blog