K
Ken Olson
I have a list of about 1,000 classmates that I want to publish as a web
page. This code does just that perfectly.
DoCmd.OutputTo acReport, "rptCreateClassmateList", "MS-DOSText(*.txt)",
"C:\ClassmateList.htm", False, "", 0
However, I want to create a separate page for each last name that starts
with the same letter. So I would end up with 26 pages total (Example:
ClassmateList_A.htm, ClassmateList_B.htm, etc.). The code above generates
all the names on one page. I could of course create 26 different queries
using (Like "a*") as the criteria changing the letter for each. Or 26
different reports using the same criteria.
Unless there is a better way I thought that I could simply create 26 lines
of code, each with a different Filter and file name, and execute this code
from a command button on a form. However, I can't figure out how to feed
the OutputTo the Filter.
Thank you,
Ken
(e-mail address removed)
page. This code does just that perfectly.
DoCmd.OutputTo acReport, "rptCreateClassmateList", "MS-DOSText(*.txt)",
"C:\ClassmateList.htm", False, "", 0
However, I want to create a separate page for each last name that starts
with the same letter. So I would end up with 26 pages total (Example:
ClassmateList_A.htm, ClassmateList_B.htm, etc.). The code above generates
all the names on one page. I could of course create 26 different queries
using (Like "a*") as the criteria changing the letter for each. Or 26
different reports using the same criteria.
Unless there is a better way I thought that I could simply create 26 lines
of code, each with a different Filter and file name, and execute this code
from a command button on a form. However, I can't figure out how to feed
the OutputTo the Filter.
Thank you,
Ken
(e-mail address removed)