A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Tab order different when Finding -v- Adding?



 
 
Thread Tools Display Modes
  #1  
Old October 2nd, 2006, 03:33 PM posted to microsoft.public.access.forms
CW
external usenet poster
 
Posts: 701
Default 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  
Old October 4th, 2006, 09:17 PM posted to microsoft.public.access.forms
Brendan Reynolds
external usenet poster
 
Posts: 1,241
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.