D
Dom Torrez
Hello,
I have a three forms 1 (main), 2 (sub), 3(subsub). My third level sub form
gets its data from a query which gets an id passed in by the 2nd level sub
form. I'm having problems with getting this query to refresh or reload when
the id has changed. My query for the 3rd level subform seems to run only
once with id = 123, but when I click any of the navigator buttons to switch
between records and the id changes, id = 456, my query keeps the record set
from the original id = 123. Is there a way for me to rerun my query every
time the id changes? I have my VB code including the query for the third
level sub form within the 'On-Open' procedure. An example is I open my
main form (1) with id 123, forms 2 and 3 are loaded as well with id = 123.
All data shows up fine in all forms. But when I switch forms 1 and 2 to now
be focused on id=456 , my 3rd subsub form doesn't re-run the VB and query
with this new id=456, it remains locked to id=123. Does anyone know how I
can get my VB in the 3rd form to re-run every time the id focus changes?
Thanks for the help,
Dom Torrez
I have a three forms 1 (main), 2 (sub), 3(subsub). My third level sub form
gets its data from a query which gets an id passed in by the 2nd level sub
form. I'm having problems with getting this query to refresh or reload when
the id has changed. My query for the 3rd level subform seems to run only
once with id = 123, but when I click any of the navigator buttons to switch
between records and the id changes, id = 456, my query keeps the record set
from the original id = 123. Is there a way for me to rerun my query every
time the id changes? I have my VB code including the query for the third
level sub form within the 'On-Open' procedure. An example is I open my
main form (1) with id 123, forms 2 and 3 are loaded as well with id = 123.
All data shows up fine in all forms. But when I switch forms 1 and 2 to now
be focused on id=456 , my 3rd subsub form doesn't re-run the VB and query
with this new id=456, it remains locked to id=123. Does anyone know how I
can get my VB in the 3rd form to re-run every time the id focus changes?
Thanks for the help,
Dom Torrez