Here is one method to accomplish what you want. Place code like the following in the Click event of the button.
Sub cmdInsert_Click()
Dim sSQL As String
sSQL = "Insert Into Table1 (col1, col2) Values ('"
sSQL = sSQL & me.combobox1 & "','"
sSQL = sSQL & me.combobox2 & "')"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
NOTES:
Replace Table1, col1, col2 with the name of your table and columns.
Replace combobox1 and combobox2 with the names of your combo boxes. Terry L. Broadbent
Life would be easier if I had the source code. -Anonymous