Re: Need Macro to do Basic Repetitive Tasks
- From: "BruceM" <bamoob@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 May 2006 15:41:44 -0400
Rating responses is a function of the web-based newsreader, I believe.
For the other part of your question, try doing a Google groups search for:
Microsoft Access form specify report parameter (or something like that).
Using a form to specify report parameters is a fairly common situation, and
the methods for doing so are well-documented. I will just mention that the
method described in Access Help may not be the best one.
I would suggest that the best approach to solving a problem of this sort is
to describe the desired end result. A summary of what you have tried may
help show that you made an effort to solve the problem before you posted,
but there's no need for a lot of detail about what doesn't work. Everything
you have described in your hypothetical macro can be accomplished through
the use of a parameter form, but you seem almost to have gotten locked into
the idea of using a macro.
"Lung" <Lung@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4AA1440C-87D6-4E1E-AED4-5CC86F6048A5@xxxxxxxxxxxxxxxx
Thank you for your response and I'll try your suggestion. BTW, I get
these
e-mails suggesting that I rate responses but when I click on the links and
look around, I can't find where to thank/rate responders. If you care to
respond or think it's important, any clues on this are appreciated.
Lung
---------------------------------------------------------------------
"tina" wrote:
you can't change a query's SQL statement with a macro, you'd have to do
it
in VBA. but there's no need anyway; instead, you can set your query
criteria
to refer to a control on a form, and the query will use whatever is typed
in
the control. you should be able to use the same technique in the textbox
control on the report - set the ControlSource to refer to the control on
the
form, as
=Forms!FormName!ControlName
and in report preview the control will display whatever is typed in the
form
control.
hth
"Lung" <Lung@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7950E63A-84A5-452B-9B53-C43762BABE74@xxxxxxxxxxxxxxxx
I've been using Access to run some monthly reports, manually changingin
data
a Query and the title in a Report (which utilizes the Query) eacheach
month.
That works fine except it's a bit repetitive since I do 6 different
runs
month. I've never used a Macro before but I created one to try toautomate
the process, and it did a few of the things I wanted it to.I
Unfortunately
feel like I'm a long ways off on what I thought should be a simpleproject,
particularly the way things are automated these days. I read througha
many
help screens and newsgroup items but only got a little further. I'd
take
class and learn more but I doubt I'll need to do another Macro anytimethe
in
next few years. Any help you can provide would be greatly appreciated.how
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,
do I get to it?so
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)
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.
.
- References:
- Re: Need Macro to do Basic Repetitive Tasks
- From: tina
- Re: Need Macro to do Basic Repetitive Tasks
- From: Lung
- Re: Need Macro to do Basic Repetitive Tasks
- Prev by Date: Re: checkbox doesn't filter query
- Next by Date: List Box Madness
- Previous by thread: Re: Need Macro to do Basic Repetitive Tasks
- Next by thread: Re: Need Macro to do Basic Repetitive Tasks
- Index(es):
Relevant Pages
|