Hello,
I have a form that filters from a combobox, then the user selects another item from a different combobox. The I want then to click a button that will take that data and append it to a table. I have this code in the on click of the button, but it doesn't do anything. Anyone able to see where I messed up?
Thanks
Option Compare Database
Private Sub Command17_Click()
Dim sSQL As String
sSQL = "Insert into [Training] (Employee_number, last_name, first_name, Job_Title, BPML)" _
& "Values (Forms!frmComboTest.employee, Forms!frmComboTest.Last_Name, Forms!frmComboTest.first_name, Forms!frmComboTest.field11,Forms!frmComboTest.combo11);"
End Sub
What happens if you get scared half to death twice?
Bob
I have a form that filters from a combobox, then the user selects another item from a different combobox. The I want then to click a button that will take that data and append it to a table. I have this code in the on click of the button, but it doesn't do anything. Anyone able to see where I messed up?
Thanks
Option Compare Database
Private Sub Command17_Click()
Dim sSQL As String
sSQL = "Insert into [Training] (Employee_number, last_name, first_name, Job_Title, BPML)" _
& "Values (Forms!frmComboTest.employee, Forms!frmComboTest.Last_Name, Forms!frmComboTest.first_name, Forms!frmComboTest.field11,Forms!frmComboTest.combo11);"
End Sub
What happens if you get scared half to death twice?
Bob