A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

turn combo box highlight off?



 
 
Thread Tools Display Modes
  #1  
Old April 13th, 2008, 05:16 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default turn combo box highlight off?

MikeV06 wrote:
I have a main form with a subform. The main form has a combo box. The
drop down list is used to select an item which populates the subform.
All works as it should.

However, the selected entry in the combo box is highlighted (as it
should be since it was selected and in focus). What I would like to
do is turn off the highlight but leave the control in focus so that
the drop down list can again be used for selecting an item.

It that possible and if so, how?


Manipulating the SelStart and/or SelLength properties of the ComboBox should
work for this, but for some reason when I test this they have no effect when
used in the AfterUpdate event of the ComboBox.

I was testing in Access 97 so if you have a different version you could
still try that as it might work in newer versions.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.