Hello dear readers,
I am trying to implement a bound (to an RTF memo field) txtbox on a form and I can't find a workaround for an annoying default feature of access: my "enter" key keystrokes move to next record.
I managed to prevent this behavior, at least, with a key capture routine, but I would like the return key to feed a line and return carriage (like it would in Word) so that the user can modify the contents of the box.
Method #1 on keydown event only adds the line at the end of the existing text, but I couldn't come up with another solution (the newline should be put where the blinking marker is)
for reference:
Any ideas?
I am trying to implement a bound (to an RTF memo field) txtbox on a form and I can't find a workaround for an annoying default feature of access: my "enter" key keystrokes move to next record.
I managed to prevent this behavior, at least, with a key capture routine, but I would like the return key to feed a line and return carriage (like it would in Word) so that the user can modify the contents of the box.
Method #1 on keydown event only adds the line at the end of the existing text, but I couldn't come up with another solution (the newline should be put where the blinking marker is)
for reference:
Code:
me.txtbox = me.txtbox & vbCrLf
Any ideas?