Hi i have a form that contain text boxes . I want when i just fill the 1st text box to set the focus on the second text box without pressing on "Enter".
and when i fill the second one also to set the focus on the 3rd one . Till the end of the text boxes.
My form contain: txtArticle must be 7 digit
txtSize 2 digit
txtQty (default value = 1)
txtRealPrice (this on is locked)
txtPriceAfterDi scount (this on is locked)
txtTotalPrice
I want when i enter 7 digit in the txtArticle to set the focus on the txtSize, and when enter 3 digit in the txtSize to set the focus on txtQty.
And since the txtQty is by default 1 , i want to set the focus on the txtTotalPrice.
I did try the txt.setfocus
I managed to set the focus from txtArticle to txtSize to txtQty. but i couldn't set it to txtTotalPrice
And this is the code hope that some one will help
these are the on change and the after update event that i wrote for the article
And that one is the on change and the after update event that i wrote for the size.
And in the txtQty i wrote this (on change , and on after update)
But i keep getting this error : Can't get the focus on the txtTotalPrice.
Many thanks for all of the great team . :)
and when i fill the second one also to set the focus on the 3rd one . Till the end of the text boxes.
My form contain: txtArticle must be 7 digit
txtSize 2 digit
txtQty (default value = 1)
txtRealPrice (this on is locked)
txtPriceAfterDi scount (this on is locked)
txtTotalPrice
I want when i enter 7 digit in the txtArticle to set the focus on the txtSize, and when enter 3 digit in the txtSize to set the focus on txtQty.
And since the txtQty is by default 1 , i want to set the focus on the txtTotalPrice.
I did try the txt.setfocus
I managed to set the focus from txtArticle to txtSize to txtQty. but i couldn't set it to txtTotalPrice
And this is the code hope that some one will help
these are the on change and the after update event that i wrote for the article
Code:
if (len(me.txtArticle.text)=7) then txtSize.setFocus end if
Code:
if (len(me.txtSize.text)=3) then txtQty.setFocus end if
Code:
if (me.txtQty.value=1) then txtTotalPrice.setFocus end if
Many thanks for all of the great team . :)
Comment