Want to exit textbox control, enter command button using special key

  • Thread starter Thread starter Jay Bukstein
  • Start date Start date
J

Jay Bukstein

I would just set the properties of the text box to not
required and then us similar code to the OnExit on the
BeforeUpdate of the Form that would set focus to the
TextBox if null or not a date format.
 
Phil,

I think Jay's suggestion is a good one as you can use [txtBoxName].SetFocus
to return the focus to your textbox. However, if you don't want to do that,
you could consider using the doubleclick event of the text box to invoke
your calendar function, instead of using the command button.

--

Jamie :o)

Thanks for the reply.

Perhaps I've missed a detail in my original explanation.
I want the focus back to the textbox

....unless...

the user clicks on the command button next to the
textbox (which will still allow the user to populate the
textbox with a date).

So, I'm still looking for a solution to this.

Thanks for any suggestions / help.
 
Back
Top