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  

Combo Box Display



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2004, 03:29 AM
Stuart
external usenet poster
 
Posts: n/a
Default Combo Box Display

I'm looking for the way to display a list of 5 entrys from many (it's a year
display) in a combo box but have the default value be the third in the list
when the drop down is selected, so that the previous years would be an easy
selection. I have the List Rows set correctly but I don't know how to
position the default value to not be top of the list.

Thanks for any help.

Stuart


  #2  
Old August 1st, 2004, 04:33 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default Combo Box Display

Set the default value of the combo box to this:

=[NameOfComboBox].ItemData(2)


--

Ken Snell
MS ACCESS MVP

"Stuart" wrote in message
...
I'm looking for the way to display a list of 5 entrys from many (it's a

year
display) in a combo box but have the default value be the third in the

list
when the drop down is selected, so that the previous years would be an

easy
selection. I have the List Rows set correctly but I don't know how to
position the default value to not be top of the list.

Thanks for any help.

Stuart




  #3  
Old August 1st, 2004, 08:10 AM
Larry Daugherty
external usenet poster
 
Posts: n/a
Default Combo Box Display

Hi Stuart,

I haven't looked for a better way so your mileage may vary ...

With focus on your combobox you can use SendKeys to send a couple of
DownArrows. There is a better and safer version of SendKeys at
www.mvps.org/access

HTH
--
-Larry-
--

"Stuart" wrote in message
...
I'm looking for the way to display a list of 5 entrys from many (it's a

year
display) in a combo box but have the default value be the third in the

list
when the drop down is selected, so that the previous years would be an

easy
selection. I have the List Rows set correctly but I don't know how to
position the default value to not be top of the list.

Thanks for any help.

Stuart




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a combo box that will display relitive infromation based on another com Larry Using Forms 1 June 15th, 2004 04:57 PM
Combo Box Problem Charles Using Forms 0 May 28th, 2004 09:15 PM
Display column 4 in combo box AfterUpdate Bradley C. Hammerstrom New Users 2 May 27th, 2004 06:29 PM
Requery Combobox MJ Running & Setting Up Queries 7 May 25th, 2004 11:01 AM


All times are GMT +1. The time now is 07:18 AM.


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