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?
Nov 1 2007, 10:19 AM
I believe it's:
Me.NameOfControl.SelStart = 0
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
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.
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?
PS. Howdy TheDBGuy....
Nov 1 2007, 01:37 PM
opps - SelStart = 0 does work
Nov 1 2007, 02:58 PM
Glad you got it to work! Good luck.
Nov 1 2007, 03:00 PM
I'm fine Jack, thanks for asking. Hope you're fine too!
Nov 1 2007, 03:28 PM
I'm 'fine as wine' thank you very much!!! Glad to hear you are doing well too....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here