My Assistant
![]() ![]() |
|
|
Nov 1 2007, 10:15 AM
Post
#1
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
When clicking onto a Date feild on the form - what is the code for on GetFocus to have the cusor go to the beginning of the date feild?
thanks steve |
|
|
|
Nov 1 2007, 10:19 AM
Post
#2
|
|
|
Access Wiki and Forums Moderator Posts: 47,913 From: SoCal, USA |
I believe it's:
Me.NameOfControl.SelStart = 0 HTH |
|
|
|
Nov 1 2007, 12:58 PM
Post
#3
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
Didn't work - maybe if there was a way that could highlight the entire feild like when you tab to it
steve |
|
|
|
Nov 1 2007, 01:22 PM
Post
#4
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
I guess what i am looking for is like when you tab to the feild it highlights the entire feild - where as when you click on to the feild it puts the cusor in the date feild where you clicked it.
Thanks steve |
|
|
|
Nov 1 2007, 01:30 PM
Post
#5
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Hmmm. When I tab into a date control that has data the entire date is highlighted. Wherever I place the cursor in the control and click that is where the cursor stays. Am I missing something?
Jack PS. Howdy TheDBGuy.... |
|
|
|
Nov 1 2007, 01:37 PM
Post
#6
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
opps - SelStart = 0 does work
thanks steve |
|
|
|
Nov 1 2007, 02:58 PM
Post
#7
|
|
|
Access Wiki and Forums Moderator Posts: 47,913 From: SoCal, USA |
Glad you got it to work! Good luck.
|
|
|
|
Nov 1 2007, 03:00 PM
Post
#8
|
|
|
Access Wiki and Forums Moderator Posts: 47,913 From: SoCal, USA |
I'm fine Jack, thanks for asking. Hope you're fine too!
|
|
|
|
Nov 1 2007, 03:28 PM
Post
#9
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
I'm 'fine as wine' thank you very much!!! Glad to hear you are doing well too....
Jack |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 18th May 2013 - 02:23 PM |