M
Mark Andrews
Access2007:
If I have a multiline textbox (txtSample) on a form with text of "123456789"
and then I enter 3 carriage returns at the end, if I capture
txtSample.SelStart position in the txtSample_KeyUp event at the end of
everything it is 15 (9 characters plus 6 for the 3 CRs (assuming that's
CHR(10) and Chr(13)).
However if focus leaves the field it strips out the ending carriage returns.
Anyway to get Access2007 to stop stripping out the carriage returns?
I want to append some other text to the text "123456789" and 3 carriage
returns.
I could write logic to add back in CRs based on the 6 (in this example) but
would rather not.
Thanks in advance,
Mark
If I have a multiline textbox (txtSample) on a form with text of "123456789"
and then I enter 3 carriage returns at the end, if I capture
txtSample.SelStart position in the txtSample_KeyUp event at the end of
everything it is 15 (9 characters plus 6 for the 3 CRs (assuming that's
CHR(10) and Chr(13)).
However if focus leaves the field it strips out the ending carriage returns.
Anyway to get Access2007 to stop stripping out the carriage returns?
I want to append some other text to the text "123456789" and 3 carriage
returns.
I could write logic to add back in CRs based on the 6 (in this example) but
would rather not.
Thanks in advance,
Mark