Set cursor position in textbox results in overflow

S

Sangeeta

Hi,
Can some on help me with this. I am performing a find operation in a
textbox. I am using the selstart and sellenght function to highlight
the found words. I have read from other replies in google forms that
the selstart takes only integers. But i have a field that holds data
more than an intger can hold and need to make the cursor jump to that
word position. If the instr function found a word in a location that
integer value could hold it works fine. Otherwise it gives me an
overflow error.
Me.txtDisplayBox.SelStart = locfound - 1 'locfound in long
Me.txtDisplayBox.SelLength = strlen
Can someone suggest me a workaround on this issue!
How can i set the cursor to jump to a word which is in a position like
36045
Any help appreciated!
Thank you in advance

Sangeeta Noby
 
M

missinglinq via AccessMonster.com

If this works please post back here! Myself and several others were trying to
solve this problem a few weeks ago. We were trying to use SelStart to set the
cursor to the end of text in a large memo field. Access will only set the
cursor to the integer's limit, which is 32,767 characters.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top