move cursor to end of box to get rid of highlight

G

Gary

i very kind person in this forum told me how to do this for a text box
control, by setting the on enter property to run the following code.

Me![control name].SelStart = Me![control name].SelLength

which works great. Now i want to do the same thing for a combo box,
(get rid of that god awful black highlight.) but this code doesn't work
for combo boxe's it says im not allowed to run that code on a combo
box.

Can any clever person modify it to work on a combo box control please.

thanks,

Gary
 
J

jahoobob

Try this: http://www.mvps.org/access/forms/frm0011.htm
i very kind person in this forum told me how to do this for a text box
control, by setting the on enter property to run the following code.

Me![control name].SelStart = Me![control name].SelLength

which works great. Now i want to do the same thing for a combo box,
(get rid of that god awful black highlight.) but this code doesn'
work
for combo boxe's it says im not allowed to run that code on a combo
box.

Can any clever person modify it to work on a combo box control please.

thanks,

Gar
 
G

Gary

Hi thank's
but that's a link to the code i typed above, it works fine for txtbox
but not for combo box

=(

Gary.
 
Top