CHKarcher
Nov 1 2007, 10:15 AM
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
theDBguy
Nov 1 2007, 10:19 AM
I believe it's:
Me.NameOfControl.SelStart = 0
HTH
CHKarcher
Nov 1 2007, 12:58 PM
Didn't work - maybe if there was a way that could highlight the entire feild like when you tab to it
steve
CHKarcher
Nov 1 2007, 01:22 PM
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
Jack Cowley
Nov 1 2007, 01:30 PM
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....
CHKarcher
Nov 1 2007, 01:37 PM
opps - SelStart = 0 does work
thanks
steve
theDBguy
Nov 1 2007, 02:58 PM
Glad you got it to work! Good luck.
theDBguy
Nov 1 2007, 03:00 PM
I'm fine Jack, thanks for asking. Hope you're fine too!
Jack Cowley
Nov 1 2007, 03:28 PM
I'm 'fine as wine' thank you very much!!! Glad to hear you are doing well too....
Jack
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.