Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Tab Order in Code

Status
Not open for further replies.

vfisher

Programmer
Apr 15, 2002
40
US
I'm having a problem with the tab order on a form. I set the tab order using the Access tab order window. I also tried to set the tab order in code using tabindex = 0, 1 etc. However, when I tab, it still bypassing the fields. I am prefilling the fields from a previous record and suspect this might be causing the problem.

How can I force the tab order?
 
'if you need to set control to have a tab stop
Me.cmdSetFocusHere.TabStop = True
Me!CmdAdmin.TabStop = True
Me!CmdBatch.TabStop = True
Me!CmdExit.TabStop = True
Me!cmdPPVBatch.TabStop = True
Me!cmdReports.TabStop = True
'set tab order
Me.cmdSetFocusHere.TabIndex = 0
Me!CmdAdmin.TabIndex = 1
Me!CmdBatch.TabIndex = 2
Me!CmdExit.TabIndex = 3
Me!cmdPPVBatch.TabIndex = 4
Me!cmdReports.TabIndex = 5
 
Thank you very much. I had the tab order right - just missing the tab stop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top