G
Guest
I've been using Access to run some monthly reports, manually changing data in
a Query and the title in a Report (which utilizes the Query) each month.
That works fine except it's a bit repetitive since I do 6 different runs each
month. I've never used a Macro before but I created one to try to automate
the process, and it did a few of the things I wanted it to. Unfortunately I
feel like I'm a long ways off on what I thought should be a simple project,
particularly the way things are automated these days. I read through many
help screens and newsgroup items but only got a little further. I'd take a
class and learn more but I doubt I'll need to do another Macro anytime in the
next few years. Any help you can provide would be greatly appreciated.
Is there a Macro Record feature in Access whereby you can just run through
the keystrokes and have Access enter the correct Macro protocol? If so, how
do I get to it?
If none exists, here's what I want to do.
1) Pop open a entry screen so I can enter the appropriate month number
(e.g., 2 = February) of the Report I need to run, and the appropriate year
(e.g. 2006).
2) Open up the "Test" Query in design mode.
3) Select the criteria box of the "Client Code" field, and change the
alphabet listing so that it reads ... Like "[M-Z]*"
4) Select the criteria box of the "Month" field, and change the month
number so that it reads ... Like "02*"
5) Save the Query, Close the Query, and Open up the "Test" Report.
6) Select the text field "Text16" and change it to show the correct
alphabet and month (hopefully automatically based on my input in step 2) so
that it reads ... "Monthly Report for February 2006 M-Z"
7) Print the report
8) Save and/or Close the Report.
9) Repeat steps 2 to 9 for the other reports.
a Query and the title in a Report (which utilizes the Query) each month.
That works fine except it's a bit repetitive since I do 6 different runs each
month. I've never used a Macro before but I created one to try to automate
the process, and it did a few of the things I wanted it to. Unfortunately I
feel like I'm a long ways off on what I thought should be a simple project,
particularly the way things are automated these days. I read through many
help screens and newsgroup items but only got a little further. I'd take a
class and learn more but I doubt I'll need to do another Macro anytime in the
next few years. Any help you can provide would be greatly appreciated.
Is there a Macro Record feature in Access whereby you can just run through
the keystrokes and have Access enter the correct Macro protocol? If so, how
do I get to it?
If none exists, here's what I want to do.
1) Pop open a entry screen so I can enter the appropriate month number
(e.g., 2 = February) of the Report I need to run, and the appropriate year
(e.g. 2006).
2) Open up the "Test" Query in design mode.
3) Select the criteria box of the "Client Code" field, and change the
alphabet listing so that it reads ... Like "[M-Z]*"
4) Select the criteria box of the "Month" field, and change the month
number so that it reads ... Like "02*"
5) Save the Query, Close the Query, and Open up the "Test" Report.
6) Select the text field "Text16" and change it to show the correct
alphabet and month (hopefully automatically based on my input in step 2) so
that it reads ... "Monthly Report for February 2006 M-Z"
7) Print the report
8) Save and/or Close the Report.
9) Repeat steps 2 to 9 for the other reports.