Making controls' tab order/layer attributes persistent

A

AliKwok

Hi

Does anyone know some clever ways to stop AXP messing up tab indexes and
layering of a form's controls when changing attributes like visible, enabled
and using setfocus on them?

Cheers

AliKwok
 
A

Allen Browne

I think the issue is that PageIndex of the pages is not consistent when
their Visible property is set to no, and so it makes it hard to identify
them?

If so, use the name of the page instead of its PageIndex. Example:

Private Sub MyTab_Change()
If Me.[MyTab].Value = Me.[MyPage].PageIndex Then
MsgBox "Oh no: you're on MyPage!"
End If
End Sub
 
Top