If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Tab order different when Finding -v- Adding?
I would like to set the tab order within a form differently for when adding a
new record, as opposed to when searching for/editing an existing record. Is it possible to do this, or can there be only one tab order on a form regardless of mode of use? Thanks CW |
#2
|
|||
|
|||
Tab order different when Finding -v- Adding?
Private Sub cmdTest_Click()
If Me.txtOne.TabIndex = 0 Then Me.txtThree.TabIndex = 0 Me.txtTwo.TabIndex = 1 Me.txtOne.TabIndex = 2 Me.txtThree.SetFocus Else Me.txtOne.TabIndex = 0 Me.txtTwo.TabIndex = 1 Me.txtThree.TabIndex = 2 Me.txtOne.SetFocus End If Me.cmdTest.TabIndex = 3 End Sub In this example txtOne, txtTwo and txtThree are text boxes, cmdTest is a command button. -- Brendan Reynolds Access MVP "CW" wrote in message ... I would like to set the tab order within a form differently for when adding a new record, as opposed to when searching for/editing an existing record. Is it possible to do this, or can there be only one tab order on a form regardless of mode of use? Thanks CW |
Thread Tools | |
Display Modes | |
|
|