dbTalk Databases Forums  

Tab Order

comp.database.ms-access comp.database.ms-access


Discuss Tab Order in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jack
 
Posts: n/a

Default Tab Order - 12-08-2004 , 08:41 PM






I have a data entry form with 3 subforms.
The tab order won't allow me to tab out of one subform into another field,
and so on into other subforms etc.

Is there a work around ??

Jack




Reply With Quote
  #2  
Old   
C.P.J. de Boer
 
Posts: n/a

Default Re: Tab Order - 12-12-2004 , 03:28 PM






Perhaps defining some visual basic code on the field you are leaving e.g.
if the field is fldItemNumber on subform sfrmItems and after that you want
to jump to the field fldQuantity on subform sfrmOrderLine you could define
a function on fldItemNumber attribute AfterUpdate in wich you set focus the
field fldQuantity on sfrmOrderLine.

Sub fldItemNumber_AfterUpdate()
sfrmOrderLine.fldQuantity.SetFocus
End Sub

In stead of 'sfrmOrderLine.fldQuantity.SetFocus' i think you can also use
'me.parent.sfrmOrderLine.fldQuantity.SetFocus' if you want to be sure you
get the right instance of that subform.

You might want to add ErrorHandling in case the other subform is not there...

Kees de Boer


Jack wrote:
Quote:
I have a data entry form with 3 subforms.
The tab order won't allow me to tab out of one subform into another field,
and so on into other subforms etc.

Is there a work around ??

Jack




Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.