M
mbr96 via AccessMonster.com
Form1 has two subforms, one with with recordsource Query1a and the other
recordsource Query1b. I have a button on Form1 that opens Form2. A user
makes choices on Form2, then clicks off a process that creates Query2a and
Query2b dataset, which needs to be shown back on Form1. So I'm trying to
change the recordsources for the two subforms on Form1. I've done this
before but I'm missing something about how "Me" works.
I reopen Form1, change the recordsouces of the subforms, but then the screen
does not yet know that the subform recordsources are different,so I try a
Me.Requery
Me.Refresh
and it says something about the object not being open or that it doesn't
exist. It says this while I'm looking at the "existing, open" object on the
screen. Sometimes computers seem almost as confused as people like me!
It must think I mean another object, not sure how to interpret this. The
form names, subform control names, and recordsources are all spelled
corrrectly, because if I hit F5 (refresh) the screen updates to the correct
Query2a and Query2b recordsources.
Any help? Thanks much.
recordsource Query1b. I have a button on Form1 that opens Form2. A user
makes choices on Form2, then clicks off a process that creates Query2a and
Query2b dataset, which needs to be shown back on Form1. So I'm trying to
change the recordsources for the two subforms on Form1. I've done this
before but I'm missing something about how "Me" works.
I reopen Form1, change the recordsouces of the subforms, but then the screen
does not yet know that the subform recordsources are different,so I try a
Me.Requery
Me.Refresh
and it says something about the object not being open or that it doesn't
exist. It says this while I'm looking at the "existing, open" object on the
screen. Sometimes computers seem almost as confused as people like me!
It must think I mean another object, not sure how to interpret this. The
form names, subform control names, and recordsources are all spelled
corrrectly, because if I hit F5 (refresh) the screen updates to the correct
Query2a and Query2b recordsources.
Any help? Thanks much.