I have a combobox that displays names of movie actors from the actor table in a DB. I have the following code:-
VB Code:
  1. Private Sub cmdAdd_Click()
  2.  
  3.     Dim strNewItem As String
  4.     strNewItem = InputBox(prompt:="Enter Actor's name")
  5.     cboAddActor.AddItem strNewItem
  6.    
  7. End Sub
Which adds an actor's name into a combobox. But I wish to know whether as the name is added into the combobox, I can get it added into the the database too, using INSERT code.

Thanks