P
Pamela via AccessMonster.com
Hello,
I am developing a form with page breaks & subforms and am trying to do the
following:
In a subform, I have a comments box. When the user checks the "Other" check
box, I have the comments field highlighted & move the focus to the comments
box. When the user clears the "Other" check box, the comments box turns
white. If the user tried to exit the comments box without entering a
comment (when "Other" is checked), an alert pops up telling them to enter a
comment, & the focus returns to the comments box, forcing the user to enter a
comment. This all works fine except for one small annoying thing that is
annoying me...
When there is already a comment in the comment box & the user clicks "other",
focus is placed on the comments box but it highlights all the text. I want
it to go to the end of the line if the comments box is not null...how do I
accomplish this...still learning VBA and am stumped as to how to go about
this.
Thanks!
I am developing a form with page breaks & subforms and am trying to do the
following:
In a subform, I have a comments box. When the user checks the "Other" check
box, I have the comments field highlighted & move the focus to the comments
box. When the user clears the "Other" check box, the comments box turns
white. If the user tried to exit the comments box without entering a
comment (when "Other" is checked), an alert pops up telling them to enter a
comment, & the focus returns to the comments box, forcing the user to enter a
comment. This all works fine except for one small annoying thing that is
annoying me...
When there is already a comment in the comment box & the user clicks "other",
focus is placed on the comments box but it highlights all the text. I want
it to go to the end of the line if the comments box is not null...how do I
accomplish this...still learning VBA and am stumped as to how to go about
this.
Thanks!