I have a sub-form that needs contents of its OpenArgs to be set. How do I suppress the opening of the sub-form until the main form has reached a state where the required OpenArgs can be set?
I have a sub-form that needs contents of its OpenArgs to be set. How do I suppress the opening of the sub-form until the main form has reached a state where the required OpenArgs can be set?
Don't set the subform container control SourceObject property in design. Load it with code behind main form.
Why is subform OpenArgs dependent on main form "is ready"?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
You cannot. The subform opens and loads first, then the main form. The main form unloads first, then the subform.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
Thanks, that will work fine.Don't set the subform container control SourceObject property in design. Load it with code behind main form.
The sub-form needs a date that the main-form determines. The sub-form isn't visible until it's called. Strictly a UI consideration.Why is subform OpenArgs dependent on main form "is ready"?
Thanks,
Bill
Yes, I forgot about that!The subform opens and loads first