So long as the UE code is below these recordset declarations it seems like it should be working to me. What exactly is the result that you are getting with this now? Is it showing the wrong records in the email message? Have you been able to check on any of the values that come from this recordset to ensure that they are there to begin with?