First thing, because of you all and this web site, I am building a first class time saving database for my fellow workers to use.
My really dumb questions is this.
I have a control in a subform that is in the second position in terms of all the controls in the form. When entering the subform via a toggle button, the focus is set on the first control which is locomotiveID. (By the way, the subform is a datasheet type of subform)
The number 2 control is called TimeObserved and I have included an input mask of short time in the data portion of the property box for this control. I want the input to be in military time. If I tab from the LocomotiveID control to the TimeObserved control, the input cursor is basically a text entry type of cursor. If I click in the TimeObserved control when I leave the LocomotiveID control, then the input mask setup _ _:_ _ is visible and the cursor is set to take the proper input.
I really need to have the input mask setup with the cursor in the proper position set up when I tab from the first control to the second one, but everything I've tried will not work. I'm tried to setfocus in several different ways using the GetFocus event and the same thing with the LostFocus event associated with LocomotiveId Control. Nothing will work short of just clicking in the control's text box. I'm sure the solution is very simple, but I can't figure it out.
Can anyone lead me to the Promise Land on this one? If I can whip this problem, then I'm going to start beta testing the database, so...HELP! *LOL*
Thanks all!
Rick Flink = The Grizz
My really dumb questions is this.
I have a control in a subform that is in the second position in terms of all the controls in the form. When entering the subform via a toggle button, the focus is set on the first control which is locomotiveID. (By the way, the subform is a datasheet type of subform)
The number 2 control is called TimeObserved and I have included an input mask of short time in the data portion of the property box for this control. I want the input to be in military time. If I tab from the LocomotiveID control to the TimeObserved control, the input cursor is basically a text entry type of cursor. If I click in the TimeObserved control when I leave the LocomotiveID control, then the input mask setup _ _:_ _ is visible and the cursor is set to take the proper input.
I really need to have the input mask setup with the cursor in the proper position set up when I tab from the first control to the second one, but everything I've tried will not work. I'm tried to setfocus in several different ways using the GetFocus event and the same thing with the LostFocus event associated with LocomotiveId Control. Nothing will work short of just clicking in the control's text box. I'm sure the solution is very simple, but I can't figure it out.
Can anyone lead me to the Promise Land on this one? If I can whip this problem, then I'm going to start beta testing the database, so...HELP! *LOL*
Thanks all!
Rick Flink = The Grizz
Comment