Well, you could download my mail merge program. Remove all criteria from the
query.
Then, place a button in your popup form that lets the user select the
department.
Then, the button code on that popup form to merge would go:
dim strSql as string
strSql = "select * from qryDept where DeptID = " & me!DepartmentID
MergeAllWord strSql
That is all you need!
You can try downloading my sample mail merge code and system here:
http://www.attcanada.net/~kallal.msn.../msaccess.html
Give the download a try..and see if you like it. If the working sample is to
your lining, then you can read the notes on how to use this merge in your
application. Once my code system is in place, you can see that you only need
about 3 lines of code to do the whole mail merge...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com http://www.attcanada.net/~kallal.msn