G
george
Hi,
I use the following code to select the whole text in my
LName textbox when I click on it:
if not isnull(LName) then
me.LName.selstart = 0
me.LName.sellenght = len(me.LName)
end if
Now I would like to add an extra feature. If I clicked for
a second time on (the already selected) text I would like
the text to be deselected and the cursor to be inserted in
the place I clicked. How do I do this?
Also can someone explain why the above mentioned code
doesn't work for combo boxes?
Any help greatly appreciated.
Thanks in advance, george
I use the following code to select the whole text in my
LName textbox when I click on it:
if not isnull(LName) then
me.LName.selstart = 0
me.LName.sellenght = len(me.LName)
end if
Now I would like to add an extra feature. If I clicked for
a second time on (the already selected) text I would like
the text to be deselected and the cursor to be inserted in
the place I clicked. How do I do this?
Also can someone explain why the above mentioned code
doesn't work for combo boxes?
Any help greatly appreciated.
Thanks in advance, george