I have an access2000 database that emails an XL file to various people at the press of a button, using the following simple code…
DoCmd.SendObject acQuery, "qry_GMC_Name", acFormatXLS, recipient, , , "Supplementary list update", msgText, editMsg
The string variable ‘recipient’ is the list of recipients which, at present, I have simply declared and assigned within the code.
However, this list is becoming quite large and, in order to make it more manageable, the addresses would ideally reside in a table which could then be converted into a single-line string that could be used in this function.
Unfortunately I’m still pretty new at this, and am at present clueless when it comes to working with Recordsets etc.
Would some kind soul give me some guidance on how to do this, please?
DoCmd.SendObject acQuery, "qry_GMC_Name", acFormatXLS, recipient, , , "Supplementary list update", msgText, editMsg
The string variable ‘recipient’ is the list of recipients which, at present, I have simply declared and assigned within the code.
However, this list is becoming quite large and, in order to make it more manageable, the addresses would ideally reside in a table which could then be converted into a single-line string that could be used in this function.
Unfortunately I’m still pretty new at this, and am at present clueless when it comes to working with Recordsets etc.
Would some kind soul give me some guidance on how to do this, please?