Hi Rob,
I know we spoke about this in UserGroup #80, and I agreed the code should likely not be there, but I've had a think about it and I'm somewhat conflicted.
Yes, I get that you've been using a technique that is likely not a bad technique, but which is not ideal for this situation. And leaving the code in means you need to move your variable declarations elsewhere. Plus, I'm guessing, perhaps some code needs to move elsewhere as well.
Rather than just suppress the Export routine for now, I think it would be better to understand your setup, and adjust the routine so that ideally it either supports your current approach, or determines a new approach which would become a "best practice".
I'm not keen to just suppress the Export routine because it'll make it that much harder for you later on when you want to turn the Export button on - plus of course others who are doing things in a similar way. I think in the long run it would be better to take a look at this and see if an alternative approach is perhaps better.
So first thing I guess is to get an example of your current technique. Could you adapt any of the shipping examples to show what you are doing, and the error it causes?
Thanks
Bruce