Hi All,
I'm trying to build a training database with a group people in it. I have 1 table named 1PeopleProTable and a 2nd table named 2ProcedureTable. I have created a form that has several listbox's in it that is using a query that is breaking the 2nd table in to several different procedure classes, one Procedure Class/Listbox. Now what I would like to do pull the first and last name from the 1PeopleProTable and use the selected data from the various listbox's and have all that data append a 3rd table called 3CompleteProTable.
Here is how I have it coded so far but I'm having problems with appended the 3rd table with the selected data from the listbox's
any help on my dilemma would be greatly appreciated
Thanks Josh
I'm trying to build a training database with a group people in it. I have 1 table named 1PeopleProTable and a 2nd table named 2ProcedureTable. I have created a form that has several listbox's in it that is using a query that is breaking the 2nd table in to several different procedure classes, one Procedure Class/Listbox. Now what I would like to do pull the first and last name from the 1PeopleProTable and use the selected data from the various listbox's and have all that data append a 3rd table called 3CompleteProTable.
Here is how I have it coded so far but I'm having problems with appended the 3rd table with the selected data from the listbox's
Code:
Private Sub AddProBtn_Click()
Dim strMyText As String
strMyText = Me.txtFirstName & Space(1) & Me.txtLastName & Space(1) & Me.lboCertPro.Column(1)
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO 3CompleteProTable([First Name], [Last Name],[Procedure Name], [Procedure Version])" _
& "Values('" & Me.txtFirstName & "', '" & _
Me.txtLastName & "', '" & _
Me.lboCertPro.Column(1) & "', '" & _
Me.lboCertPro.Column(2) & "')"
MsgBox strMyText & Space(1) & "was added to the database"
End Sub
Thanks Josh