S
Sandy
I have a tab control with the following proceudre for on the On Change Event:
Private Sub TabCtl0_Change()
DoCmd.Requery
End Sub
Everything work perfectly until someone clicks a SECOND time on the tab/page
that is ALREADY selected. The tab gets a light dashed line around it and many
of the menu items are greyed out. (sort, cut, paste and filter by selection
are examples)
The current record stays the same, but then the forms display the FIRST
record in the underlying table when you click any other tab.
This happens with every tab/page and there are no event procedure associated
with any of the page events so I am guessing that the Requery command is
running again, even though the page on the Tab Control is not changing
How do I prevent this from happening?
Many thanks,
sandra
Private Sub TabCtl0_Change()
DoCmd.Requery
End Sub
Everything work perfectly until someone clicks a SECOND time on the tab/page
that is ALREADY selected. The tab gets a light dashed line around it and many
of the menu items are greyed out. (sort, cut, paste and filter by selection
are examples)
The current record stays the same, but then the forms display the FIRST
record in the underlying table when you click any other tab.
This happens with every tab/page and there are no event procedure associated
with any of the page events so I am guessing that the Requery command is
running again, even though the page on the Tab Control is not changing
How do I prevent this from happening?
Many thanks,
sandra