I am trying to write a procedure that will create multiple table entries (Access2002)in tblErrorTracker from a form titled frmErrorTracker and the multiple variables are in Combo5
Here is my attempt
Private Sub cmdEnd_Click()
Dim rs As New ADODB.Recordset
rs.Open "tblErrorTracker", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Dim varItem As Variant
Dim CASS_ID As String
For Each varItem In Me.Combo5.ItemsSelected
rs("me.Combo5.itemsselected") = "errordetailid"
rs.Update
Next varItem
rs.Close
Set rs = Nothing
Thanks for your help
__________________________________
Remember that time when I took the box? - Peter Griffin
Here is my attempt
Private Sub cmdEnd_Click()
Dim rs As New ADODB.Recordset
rs.Open "tblErrorTracker", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Dim varItem As Variant
Dim CASS_ID As String
For Each varItem In Me.Combo5.ItemsSelected
rs("me.Combo5.itemsselected") = "errordetailid"
rs.Update
Next varItem
rs.Close
Set rs = Nothing
Thanks for your help
__________________________________
Remember that time when I took the box? - Peter Griffin