Al:
Assigning a zero to the SelStart property won't make any difference if you
want the insertion point at the start of the value in the control, so
could
be omitted. Where it really comes into play is when positioning it at the
end of the value, which I've found over the years is often requested in
posts
here and elsewhere. In the latter case calling the Nz function to return
a
zero-length string is also necessary, however, to cater for a Null in the
control, e.g. when at a new record, as Len(Null) is Null and the SelStart
property can't be Null. If positioning the insertion point at the end of
the
value assigning a zero to the SelLength property becomes redundant of
course,
as there is nothing beyond that to select.
Ken Sheridan
Stafford, England
Al said:
Ken,
When I looked up my old code for this question, in my test database,
I had...
LastName.SelStart = Len(LastName)
LastName.SelLength = 0
But, I remmed out the SelStart portion, and it didn't seem to make any
difference
when tabbing into the field. The behavior was the same either with my
=Len(LastName) or your =0.
And, I now question the reason for determining the SelLength...
particularly
as regards ultimately setting the SelLength = 0.
Have you found some advantage to using the SelStart?
Al Campagna
Add the following function to the form's module:
[quoted text clipped - 32 lines]
Thanks