G
Guest
I am using the following code
Private Sub lstTo_Exit(Cancel As Integer
Dim db As DAO.Databas
Dim rst As DAO.Recordse
Dim i As Intege
Set db = CurrentDb(
Set rst = fenormioc.OpenRecordset("tblToFromCopy", DB_OPEN_DYNASET
For i = 0 To lstTo.ListCount -
If lstTo.Selected(i) The
rst.AddNe
rst!ContactID = lstTo.Column(0, i
rst!Type = "To
rst.Updat
lstTo.Selected(i) = False 'clears the selectio
End I
Next
End Su
My db is fenormioc, the table for stored selections is tblToFromCopy, the listbox is lstTo. I get the message Compile Error: Method or data member not found at .OpenRecordset. I have very limited experience in programming so please keep it simple for me! Thanks!
Private Sub lstTo_Exit(Cancel As Integer
Dim db As DAO.Databas
Dim rst As DAO.Recordse
Dim i As Intege
Set db = CurrentDb(
Set rst = fenormioc.OpenRecordset("tblToFromCopy", DB_OPEN_DYNASET
For i = 0 To lstTo.ListCount -
If lstTo.Selected(i) The
rst.AddNe
rst!ContactID = lstTo.Column(0, i
rst!Type = "To
rst.Updat
lstTo.Selected(i) = False 'clears the selectio
End I
Next
End Su
My db is fenormioc, the table for stored selections is tblToFromCopy, the listbox is lstTo. I get the message Compile Error: Method or data member not found at .OpenRecordset. I have very limited experience in programming so please keep it simple for me! Thanks!