Hello I am hoping that someone here can help me I have an have a database with a very simple table with about 12500 records format is as follows
Example:
(here it s pipe delimited just for illustration purposes)
Dicks Sporting Goods | Widget 1 | $7,000 | Jan
Dicks Sporting Goods | Widget 2 | $6,000 | Feb
Dicks Sporting Goods | Widget 3 | $5,000 | Mar
Dicks Sporting Goods | Widget 4 | $4,000 | April
Dicks Sporting Goods | Widget 5 | $3,000 | May
Dicks Sporting Goods | Widget 6 | $2,000 | June
Dicks Sporting Goods | Widget 7 | $1,000 | July
Sports Authority | Widget 1 | $7,000 | Jan
Sports Authority | Widget 2 | $6,000 | Feb
Sports Authority | Widget 3 | $5,000 | Mar
Sports Authority | Widget 4 | $4,000 | April
Sports Authority | Widget 5 | $3,000 | May
Sports Authority | Widget 6 | $2,000 | June
Sports Authority | Widget 7 | $1,000 | July
I will build a simple query on this table that presents me the data i need - then I will build a very simple report - I also have pdf writer so i already know how to print and save these reports to a pdf.
What I desperately need is a way to automatically loop through the Query and for each new store name save a report to a directory i define with the store name as the report name.
Example: Report 1 would be - Dicks Sporting Goods.pdf and contain the following data:
Dicks Sporting Goods | Widget 1 | $7,000 | Jan
Dicks Sporting Goods | Widget 2 | $6,000 | Feb
Dicks Sporting Goods | Widget 3 | $5,000 | Mar
Dicks Sporting Goods | Widget 4 | $4,000 | April
Dicks Sporting Goods | Widget 5 | $3,000 | May
Dicks Sporting Goods | Widget 6 | $2,000 | June
Dicks Sporting Goods | Widget 7 | $1,000 | July
Example: Report 2: Sports Authority.pdf and contain the following data.
Sports Authority | Widget 1 | $7,000 | Jan
Sports Authority | Widget 2 | $6,000 | Feb
Sports Authority | Widget 3 | $5,000 | Mar
Sports Authority | Widget 4 | $4,000 | April
Sports Authority | Widget 5 | $3,000 | May
Sports Authority | Widget 6 | $2,000 | June
Sports Authority | Widget 7 | $1,000 | July
I have 160 unique stores and do not want to have to set up a report for each as when they change that would be a data nightmare,
Example:
(here it s pipe delimited just for illustration purposes)
Dicks Sporting Goods | Widget 1 | $7,000 | Jan
Dicks Sporting Goods | Widget 2 | $6,000 | Feb
Dicks Sporting Goods | Widget 3 | $5,000 | Mar
Dicks Sporting Goods | Widget 4 | $4,000 | April
Dicks Sporting Goods | Widget 5 | $3,000 | May
Dicks Sporting Goods | Widget 6 | $2,000 | June
Dicks Sporting Goods | Widget 7 | $1,000 | July
Sports Authority | Widget 1 | $7,000 | Jan
Sports Authority | Widget 2 | $6,000 | Feb
Sports Authority | Widget 3 | $5,000 | Mar
Sports Authority | Widget 4 | $4,000 | April
Sports Authority | Widget 5 | $3,000 | May
Sports Authority | Widget 6 | $2,000 | June
Sports Authority | Widget 7 | $1,000 | July
I will build a simple query on this table that presents me the data i need - then I will build a very simple report - I also have pdf writer so i already know how to print and save these reports to a pdf.
What I desperately need is a way to automatically loop through the Query and for each new store name save a report to a directory i define with the store name as the report name.
Example: Report 1 would be - Dicks Sporting Goods.pdf and contain the following data:
Dicks Sporting Goods | Widget 1 | $7,000 | Jan
Dicks Sporting Goods | Widget 2 | $6,000 | Feb
Dicks Sporting Goods | Widget 3 | $5,000 | Mar
Dicks Sporting Goods | Widget 4 | $4,000 | April
Dicks Sporting Goods | Widget 5 | $3,000 | May
Dicks Sporting Goods | Widget 6 | $2,000 | June
Dicks Sporting Goods | Widget 7 | $1,000 | July
Example: Report 2: Sports Authority.pdf and contain the following data.
Sports Authority | Widget 1 | $7,000 | Jan
Sports Authority | Widget 2 | $6,000 | Feb
Sports Authority | Widget 3 | $5,000 | Mar
Sports Authority | Widget 4 | $4,000 | April
Sports Authority | Widget 5 | $3,000 | May
Sports Authority | Widget 6 | $2,000 | June
Sports Authority | Widget 7 | $1,000 | July
I have 160 unique stores and do not want to have to set up a report for each as when they change that would be a data nightmare,