Dynamically SetFocus to next TabIndex control

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,406
I have a user form that contains a MultiPage control and within in each page there are a number of textboxes.

I have managed to write the code to get the TabIndex of currently active control

strMeasure is the label of the currently active control (textbox)
Code:
intTabIndex = frmDataEntry.mpMeasures.Pages(frmDataEntry.mpMeasures.Value).Controls(strMeasureLabel).TabIndex + 1
I am now struggling to focus on the next control(text box) using the intTabIndex variable.

TIA
 

Forum statistics

Threads
1,085,990
Messages
5,387,136
Members
402,045
Latest member
Hidalgo

Some videos you may like

This Week's Hot Topics

Top