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  

Tabbing through form w/ subforms



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2009, 04:58 PM posted to microsoft.public.access.forms
Pamela
external usenet poster
 
Posts: 193
Default Tabbing through form w/ subforms

In reading other posts on this issue, I added a hidden, unbound text box to
subform1 that moves focus to subform2. Upon tabbing from the last field in
the last subform, the focus then returns to the first field in that subform -
not to the first field in form. When I try to click back into the first
field of the form and start the tab order again, upon hitting the hidden,
unbound text box, I get a run-time error 2110: Cannot move the focus to the
control frmLocation. How can I get it to do a single form continuous tab
order?

Thank you so much, in advance, for help!

Pamela
  #2  
Old December 17th, 2009, 02:40 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Tabbing through form w/ subforms

Perhaps you could use something like this in the Lost Focus event of the
last control in the subform:
If Me.Dirty Then Me.Dirty = False 'Save any edits
Me.Parent.SetFocus 'Focus back to the main form.
Me.Parent![SomeOtherControl].SetFocus

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Pamela" wrote in message
news
In reading other posts on this issue, I added a hidden, unbound text box
to
subform1 that moves focus to subform2. Upon tabbing from the last field
in
the last subform, the focus then returns to the first field in that
subform -
not to the first field in form. When I try to click back into the first
field of the form and start the tab order again, upon hitting the hidden,
unbound text box, I get a run-time error 2110: Cannot move the focus to
the
control frmLocation. How can I get it to do a single form continuous tab
order?



 




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 02:05 AM.


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