I want to send an e-mail to a select group of people. I narrow the group based on a query. When the query is run, the user is asked to provide a counselor’s name (criteria in the query [Provide Counselor’s Name]). That works fine.
However, when I add the query to a recordset, the criteria question isn’t run. How do I capture that filter data for the recordset? Not sure where to begin.
On Error Resume Next
Dim db As DAO.Database
Dim rs As Object
Dim iCount As Integer
Dim rsEmail As DAO.Recordset
Dim vRecipientList As String
Set db = CurrentDb()
Set rs = CurrentDb.OpenRecordset("SELECT * FROM qryMissingItems")
However, when I add the query to a recordset, the criteria question isn’t run. How do I capture that filter data for the recordset? Not sure where to begin.
On Error Resume Next
Dim db As DAO.Database
Dim rs As Object
Dim iCount As Integer
Dim rsEmail As DAO.Recordset
Dim vRecipientList As String
Set db = CurrentDb()
Set rs = CurrentDb.OpenRecordset("SELECT * FROM qryMissingItems")