Hello,
I'm using the following code to pass a parameter to a query. The parameter limits a query to a single entry, which then is set to the recordset. I then use this recordset to sends a single email to specific respondents using email addresses in the query result.
When this code runs I get an error that says "no current record", and I can't figure out why. When I run the VBA in break mode, and check the parameter value, I see that the parameter is set to the right value and should be pulling the right record into the recordset, but alas it does not, and I've been stuck on it for several days. I get a runtime error saying that there is "no current record" Please help.
This error is particularly confounding because I have a similar segment of code in another form that performs a nearly identical procedure just fine.
Thanks in advance,
Keith
I had to attach the code as the forum thinks there are email addresses in there, and I only have 9 posts so far
I'm using the following code to pass a parameter to a query. The parameter limits a query to a single entry, which then is set to the recordset. I then use this recordset to sends a single email to specific respondents using email addresses in the query result.
When this code runs I get an error that says "no current record", and I can't figure out why. When I run the VBA in break mode, and check the parameter value, I see that the parameter is set to the right value and should be pulling the right record into the recordset, but alas it does not, and I've been stuck on it for several days. I get a runtime error saying that there is "no current record" Please help.
This error is particularly confounding because I have a similar segment of code in another form that performs a nearly identical procedure just fine.
Thanks in advance,
Keith
I had to attach the code as the forum thinks there are email addresses in there, and I only have 9 posts so far
