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 Programming / May 2007

Tip: Looking for answers? Try searching our database.

Combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EMILYTAN - 18 May 2007 02:50 GMT
How to add item into a combo box using hard code...
Ken Snell (MVP) - 18 May 2007 05:13 GMT
See this article at The ACCESS Web:
http://www.mvps.org/access/forms/frm0015.htm

Signature

       Ken Snell
<MS ACCESS MVP>

> How to add item into a combo box using hard code...
missinglinq - 18 May 2007 11:17 GMT
Is your combobox's Row Source Type Table/Query or Value List?

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

missinglinq - 18 May 2007 11:49 GMT
If your RowSource is a Value List, the following code demonstrates how to add
a value thru VBA, where the control TextBoxValueToAdd holds the new item to
be added:

Private Sub AddValueToComboboxButton_Click()
 If Not IsNull(TextBoxValueToAdd) Then
   YourComboBox.RowSource = YourComboBox.RowSource & ";" & Me.
TextBoxValueToAdd
 End If
End Sub

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

EMILYTAN - 22 May 2007 08:20 GMT
How to set value to list?
How if I want to add the item through this:-
Private Sub Form_Load()
cboOracle.AddItem "Yes"
cboOracle.AddItem "No"
End Sub
>If your RowSource is a Value List, the following code demonstrates how to add
>a value thru VBA, where the control TextBoxValueToAdd holds the new item to
[quoted text clipped - 6 lines]
>  End If
>End Sub
 
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.