PC Review


Reply
Thread Tools Rate Thread

Code to expand/collapse combo box drop-down list

 
 
Graham Walker
Guest
Posts: n/a
 
      29th May 2007
Does anyone know code to automatically expand a combo box list when the
control receives the focus and collapses it when the focus is lost?

Thanks


 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      29th May 2007
In the Enter event, or GotFocus event use:

Me.ComboBoxName.Dropdown

When you exit the combo box control the list will retract.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Graham Walker" <(E-Mail Removed)> wrote in message
news:465c37cf$0$90645$(E-Mail Removed)...
> Does anyone know code to automatically expand a combo box list when the
> control receives the focus and collapses it when the focus is lost?
>
> Thanks
>
>



 
Reply With Quote
 
Graham Walker
Guest
Posts: n/a
 
      29th May 2007
Thank you Arvin for your quick reply. I just used your code and it works
like a charm.

Thank you again.


"Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
news:eXQ%(E-Mail Removed)...
> In the Enter event, or GotFocus event use:
>
> Me.ComboBoxName.Dropdown
>
> When you exit the combo box control the list will retract.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Graham Walker" <(E-Mail Removed)> wrote in message
> news:465c37cf$0$90645$(E-Mail Removed)...
>> Does anyone know code to automatically expand a combo box list when the
>> control receives the focus and collapses it when the focus is lost?
>>
>> Thanks
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
expand combo drop-down list at form open Mark Kubicki Microsoft Access Form Coding 1 11th May 2009 09:04 PM
Expand Collapse List TGalin Microsoft Outlook Discussion 1 13th Apr 2009 06:53 PM
VB code for Unbound Combo Box with table referenced drop down list Such a Beginner Microsoft Access Forms 2 14th Apr 2008 10:55 PM
create and expand/collapse todo list under a task in excel =?Utf-8?B?ZmxhbWluZ28x?= Microsoft Excel Misc 2 12th Jul 2006 05:00 PM
Is there a shortcut key to collapse or expand a task list? =?Utf-8?B?THJkIG91dGxvb2s=?= Microsoft Outlook Discussion 0 4th Apr 2005 11:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.