
Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000
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