P
pic078 via AccessMonster.com
For optimization purposes, I have a bound form (tied to a saved query) that
preloads in hidden mode at startup - I make this form visible/invisible via
code, rather than constantly closing/re-opening the form while the
application is in use.
My question is: How do I change the recordsource behind a hidden bound form
prior to making it visible? What's the best approach?
(I'm reducing the number of records bound to the the form to one, based on
user input from another bound form - since there is no need to edit/update
more than one record at a time)
I have tried various techniques, such as modfiying the querydef of the saved
query to which the form is bound. However, the form either remains invisible
when I try to make it visible, or when the form actually appears, the form
does not display the correct information. Do I need to requery the form or
set the form recordsource property to the modified SQL every time the form is
made visible?
Any feedback would be greatly appreciated.
-Chris
preloads in hidden mode at startup - I make this form visible/invisible via
code, rather than constantly closing/re-opening the form while the
application is in use.
My question is: How do I change the recordsource behind a hidden bound form
prior to making it visible? What's the best approach?
(I'm reducing the number of records bound to the the form to one, based on
user input from another bound form - since there is no need to edit/update
more than one record at a time)
I have tried various techniques, such as modfiying the querydef of the saved
query to which the form is bound. However, the form either remains invisible
when I try to make it visible, or when the form actually appears, the form
does not display the correct information. Do I need to requery the form or
set the form recordsource property to the modified SQL every time the form is
made visible?
Any feedback would be greatly appreciated.
-Chris