N
Noel
Hi. 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 I need to set a requery action
that reruns the Combo boxes query, when the main subform
is opened. I've tried changing one of my current
requeries but I don't know enough about the code. Can
anyone help with this? The names are as follows
Tab Control Name TabCtl1
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.
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 I need to set a requery action
that reruns the Combo boxes query, when the main subform
is opened. I've tried changing one of my current
requeries but I don't know enough about the code. Can
anyone help with this? The names are as follows
Tab Control Name TabCtl1
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.