mail merging from a query
I am the admin for a database that has client records. I need to mail merge data from a query, but need to pass two variables to the query before I merge the results of it. I want the user to be able to run a command and be prompted for two variables and then have access merge it results of that query (or SELECT statement) with one button. In the past I have been having the end-user edit a query in design mode, save it, and then run the merge from that query that already has criteria in it.
I would love to do it in VBA and SQL. Where can I find some code for this type of subroutine?
|