I had tried that yesterday, but since I couldn't remember why it didn't
work, I tried again, and I think I got it working <g>.
There are two issues:
1. The dialog has to run some processes before the main form can select
data.
2. I keep the dialog open, so the user can redisplay it and modify
selection settings.
I handled #1 in bypass/hidden mode by running the dialog's processes
from the main form after opening it hidden. This way, they complete
before the main form code continues.
For #2, if the dialog is opened as hidden, it can't be opened as a
dialog any more. So I close it after the processes are run, when it's
open in bypass/hidden mode. (Since the user never got a chance to
change the settings, that's OK).
It's not as clean as I'd like, but it seems to be working.
Thanks,
Jerry