N
Noel
Hi, I posted this the other day and had a reply from HTH
which I couldnt understand and now its all gone quiet.
Can anyone else help me here?
I am using a Tab Control, with a subform showing on
each tab. I have a number of requeries set, using the Tab
Controls On Change event, so that when each Tab is
chosen, the query that supplies that Tabs Subform is
rerun. This all works fine. Some of these subforms have
their own subforms and the problem is with a Combo on one
of these subforms subform. When I change the records that
are supplied to the Combo via a query, the new records
don't show unless I close down the Tab Control Form and
then open it again. So the requery I have set refreshes
only the main subform, not its own subform. I've tried
changing one of my current requeries but I don't know
enough about the code. Can anyone help with this? How can
I set a requery to run on the click of a Tab Control form
that refreshes the main subform and all imbedded
subforms? The names are as follows
Tab Control Name TabCtl1
Tab Control Page Name PGCE
Main Subform Name [Students PGCE]
Subform Name [Placements Subform]
Subforms Combo Name SchoolName
Combos query Name qrySchoolsWhoHaveOffered
My current requery code is
If Me!TabCtl1 = Me!PGCE.PageIndex Then Me![Students
PGCE].Requery
Thanks, Noel.
which I couldnt understand and now its all gone quiet.
Can anyone else help me here?
I am using a Tab Control, with a subform showing on
each tab. I have a number of requeries set, using the Tab
Controls On Change event, so that when each Tab is
chosen, the query that supplies that Tabs Subform is
rerun. This all works fine. Some of these subforms have
their own subforms and the problem is with a Combo on one
of these subforms subform. When I change the records that
are supplied to the Combo via a query, the new records
don't show unless I close down the Tab Control Form and
then open it again. So the requery I have set refreshes
only the main subform, not its own subform. I've tried
changing one of my current requeries but I don't know
enough about the code. Can anyone help with this? How can
I set a requery to run on the click of a Tab Control form
that refreshes the main subform and all imbedded
subforms? The names are as follows
Tab Control Name TabCtl1
Tab Control Page Name PGCE
Main Subform Name [Students PGCE]
Subform Name [Placements Subform]
Subforms Combo Name SchoolName
Combos query Name qrySchoolsWhoHaveOffered
My current requery code is
If Me!TabCtl1 = Me!PGCE.PageIndex Then Me![Students
PGCE].Requery
Thanks, Noel.