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  

Jump from one textbox to another



 
 
Thread Tools Display Modes
  #1  
Old August 30th, 2006, 01:42 PM posted to microsoft.public.access.forms
Anna
external usenet poster
 
Posts: 66
Default Jump from one textbox to another

Is it possible when user enters date in date1 textbox cursor
automatically jump to date2 text box. My settings are as follows:

input mask 00/00/00
format property mm/dd/yy

Thank You.

  #2  
Old August 30th, 2006, 02:01 PM posted to microsoft.public.access.forms
Toine
external usenet poster
 
Posts: 3
Default Jump from one textbox to another

you can perhaps determine the length of the string inputted in date1.
and set the focus to the dat2 field as soon as all numbers are filled
in at the dat1 field

(in afterupdate_dat1 sub)
if len(me.dat1.value)=6 then
me.dat2.setfocus
endif


On 30 Aug 2006 05:42:25 -0700, "Anna" wrote:

Is it possible when user enters date in date1 textbox cursor
automatically jump to date2 text box. My settings are as follows:

input mask 00/00/00
format property mm/dd/yy

Thank You.

  #3  
Old August 30th, 2006, 02:02 PM posted to microsoft.public.access.forms
Svetlana
external usenet poster
 
Posts: 80
Default Jump from one textbox to another

On after update event of your first textbox set the focus to the other
textbox as
Me.NameOfTextBox2.SetFocus

  #4  
Old August 30th, 2006, 02:21 PM posted to microsoft.public.access.forms
Anna
external usenet poster
 
Posts: 66
Default Jump from one textbox to another

when i run the script in debug mode Len(Me.Date1.Value), it shows null.

If Len(Me.Date1.Value) = 6 Then
Me.Date2.SetFocus
End If

---------------------------------------------------
Toine wrote:
you can perhaps determine the length of the string inputted in date1.
and set the focus to the dat2 field as soon as all numbers are filled
in at the dat1 field

(in afterupdate_dat1 sub)
if len(me.dat1.value)=6 then
me.dat2.setfocus
endif


On 30 Aug 2006 05:42:25 -0700, "Anna" wrote:

Is it possible when user enters date in date1 textbox cursor
automatically jump to date2 text box. My settings are as follows:

input mask 00/00/00
format property mm/dd/yy

Thank You.


  #5  
Old August 30th, 2006, 04:50 PM posted to microsoft.public.access.forms
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default Jump from one textbox to another

If you want to try Toine's suggestion, use Text property:

If Len(Me.Date1.Text) = 6 Then
Me.Date2.SetFocus
End If

--

Ken Snell
MS ACCESS MVP


"Anna" wrote in message
ups.com...
when i run the script in debug mode Len(Me.Date1.Value), it shows null.

If Len(Me.Date1.Value) = 6 Then
Me.Date2.SetFocus
End If

---------------------------------------------------
Toine wrote:
you can perhaps determine the length of the string inputted in date1.
and set the focus to the dat2 field as soon as all numbers are filled
in at the dat1 field

(in afterupdate_dat1 sub)
if len(me.dat1.value)=6 then
me.dat2.setfocus
endif


On 30 Aug 2006 05:42:25 -0700, "Anna" wrote:

Is it possible when user enters date in date1 textbox cursor
automatically jump to date2 text box. My settings are as follows:

input mask 00/00/00
format property mm/dd/yy

Thank You.




  #6  
Old August 31st, 2006, 08:16 AM posted to microsoft.public.access.forms
John Nurick
external usenet poster
 
Posts: 492
Default Jump from one textbox to another

If a textbox has an input mask, you can just set its Autotab property to
make the focus jump to the next control in tab order when the user has
typed enough characters to "fill" the input mask.

On 30 Aug 2006 05:42:25 -0700, "Anna" wrote:

Is it possible when user enters date in date1 textbox cursor
automatically jump to date2 text box. My settings are as follows:

input mask 00/00/00
format property mm/dd/yy

Thank You.


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 




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 11:39 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.