C
Chris f via AccessMonster.com
Hello-
This is a continuation of a question asked earlier in regards to highlighting
inputted data in a text box on the After_Update. Based upon the response to
the earlier post I encountered the same problem, when running the code .
SelLength = Len(Me.TextBox.Text) or .SelLength = Len(Me.TextBox.Value), the
cursor remains before the first character entered in the text box.
To try and recreate the problem, I created a new Access 2007 database and on
a form created a text box with the code in the After_Update to highlight the
text, and instead of creating the same error, actually highlighted the text.
I then went into the form that I was having the trouble with highlighted text
box, created a new text box and the same code, and again the same problem.
I further explored this by in the existing database, created a new form with
a text box and the after_Update event, and it highlighted the text.
I then copied all the controls out of the one form I was having a problem
with, and created a new form and tried it again, and again I get the same
problem where it does not highlight and places the cursor before the actual
text.
Analysising the existing form I am having a problem with, I copied these
controls from form from a 03 mdb file. That is the only difference. Has any
problems like this been experienced with 07 or does anyone know of a fix,
besides redoing the form using 07 controls?
Thanks,
CF
This is a continuation of a question asked earlier in regards to highlighting
inputted data in a text box on the After_Update. Based upon the response to
the earlier post I encountered the same problem, when running the code .
SelLength = Len(Me.TextBox.Text) or .SelLength = Len(Me.TextBox.Value), the
cursor remains before the first character entered in the text box.
To try and recreate the problem, I created a new Access 2007 database and on
a form created a text box with the code in the After_Update to highlight the
text, and instead of creating the same error, actually highlighted the text.
I then went into the form that I was having the trouble with highlighted text
box, created a new text box and the same code, and again the same problem.
I further explored this by in the existing database, created a new form with
a text box and the after_Update event, and it highlighted the text.
I then copied all the controls out of the one form I was having a problem
with, and created a new form and tried it again, and again I get the same
problem where it does not highlight and places the cursor before the actual
text.
Analysising the existing form I am having a problem with, I copied these
controls from form from a 03 mdb file. That is the only difference. Has any
problems like this been experienced with 07 or does anyone know of a fix,
besides redoing the form using 07 controls?
Thanks,
CF