i am working on a help desk type of program for my company. i have an access adp where people can post requests for help, briefly describe their problem and such. well, admins can post comments so the users can track what is being done about their problem. the comments are stored in a text field. when the user or admin views the ticket/request the comments are stored into a text box.
the text box has the enter key behavior propert to "new line in field". so there can be multiple lines stored in the text box that has scroll bars. the text box has a height of around 10 lines of text
what i want to happen is when i click on the text box the cursor goes to the end of the text box so that i can add to the comments and also see what was posted last.
i did some digging on line and found you can use the selstart property which sort of works. what it does is scrolls the text down until the last line is at the very bottom of the text box, then it highlights from the end of the text up to where i clicked in the text box. example: i have one help ticket that has around 20 comments posted on different days. it is roughly 30 lines including blank lines. when i click on the text box say around the 3 line from the top, it scrolls down till the 30th line is the last at the very bottom of the text box. and then selects from the last character up to the 3rd line from the top that is visible, so it selects around 7 lines.
the only way around this is to click on the very right bottom corner of the text box so that when it scrolls down it sets the cursor after the last character and then tries to select past that, which there is nothing to select. even if i set the sellength of the tbox to 0 it still selects the lines of text
Start Free Trial