Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
New Ripper - 31 Mar 2008 13:22 GMT
With a combo box as soon as you click the drop down arrow it displays a box
with 10 rows of records (or whatever you set in the properties).
When I open the form containing the combo box, it displays a single line
till I click the drop down arrow.
How can I open the form and combo box in the state where it dispalys the
number of rows set in the property (as does a list box)?
Am I missing the obvious somewhere!
Dennis - 31 Mar 2008 13:38 GMT
It can be done, it does not look nice & the combobox must have the focus. In
the Open evebnt of the form, put this code using your comboxname instead.
cmbBox.SetFocus
cmbBox.DropDown

> With a combo box as soon as you click the drop down arrow it displays a box
> with 10 rows of records (or whatever you set in the properties).
[quoted text clipped - 3 lines]
> number of rows set in the property (as does a list box)?
> Am I missing the obvious somewhere!
Klatuu - 31 Mar 2008 15:11 GMT
It would be better to use the Load event than the Open event.  Sometimes, all
the object references have not been established in the Open event and an
error can occur.

The Open event can be canceled, so it is best used to determine whether to
continue opening the form or cancel opening the form.  The Load event should
be used of this sort of action.
Signature

Dave Hargis, Microsoft Access MVP

> It can be done, it does not look nice & the combobox must have the focus. In
> the Open evebnt of the form, put this code using your comboxname instead.
[quoted text clipped - 8 lines]
> > number of rows set in the property (as does a list box)?
> > Am I missing the obvious somewhere!
jversiz - 01 Apr 2008 01:11 GMT
If you use a list box instead of a combo box, you can make it large enough to
display as many records are you want.

Regards,
James C.

>With a combo box as soon as you click the drop down arrow it displays a box
>with 10 rows of records (or whatever you set in the properties).
[quoted text clipped - 3 lines]
>number of rows set in the property (as does a list box)?
>Am I missing the obvious somewhere!

Signature

Best Regards,

James C.
EDI Analyst

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.