Using the following code to build a recordset
Dim rs As Adodb.Recordset
Dim strEvent As String
Set strEvent = 1
Set rs = New ADODB.Recordset
With rs
.ActiveConnection = CurrentProject.Connection
.CursorLocation = adUseServer
.CursorType = adOpenKeyset
.LockType = adLockPessimistic
.Open "tblJoinEventContactID"
End With
rs.AddNew
rs.Fields("EventID") = strEvent
rs.Fields("ContactID") =
And having a treeview named treeview1 with the property option for checklboxes in use. The treeview Node values are essentially the contactID's
How would I add new records to the recordset using the checked boxes in the treeview assuming that each checked box represents a new record in the recordset.
Dim rs As Adodb.Recordset
Dim strEvent As String
Set strEvent = 1
Set rs = New ADODB.Recordset
With rs
.ActiveConnection = CurrentProject.Connection
.CursorLocation = adUseServer
.CursorType = adOpenKeyset
.LockType = adLockPessimistic
.Open "tblJoinEventContactID"
End With
rs.AddNew
rs.Fields("EventID") = strEvent
rs.Fields("ContactID") =
And having a treeview named treeview1 with the property option for checklboxes in use. The treeview Node values are essentially the contactID's
How would I add new records to the recordset using the checked boxes in the treeview assuming that each checked box represents a new record in the recordset.