Syntax form moving from page-to-page (actually, Tab-toTab) in Tab Control on form?

Syntax form moving from page-to-page (actually, Tab-toTab) in Tab Control on form?

Post by MLH » Thu, 16 Feb 2006 20:31:38


I thought it was DoCmd.GoToPage - but that doesn't work for
Tab Controls, it seems - only for forms with page breaks in them.

Anybody know Syntax form moving from page-to-page (actually,
Tab-toTab) in Tab Control on form?
 
 
 

Syntax form moving from page-to-page (actually, Tab-toTab) in Tab Control on form?

Post by MLH » Thu, 16 Feb 2006 22:02:41


Courtesy of Rick Brandt in another thread...
The TabControl has a Value property that corresponds to the the page
index of
the currently selected TabPage. Setting that value brings the TabPage
with that
index to the front. For example to switch to the 3rd TabPage...

Me.TabControlName = 2

(index starts at zero)
Thx, Rick.