Re: Need Macro to do Basic Repetitive Tasks
- From: Lung <Lung@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 May 2006 10:52:02 -0700
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 changing datain
a Query and the title in a Report (which utilizes the Query) each month.each
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. UnfortunatelyI
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 through manya
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 anytime inthe
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.
- Follow-Ups:
- Re: Need Macro to do Basic Repetitive Tasks
- From: tina
- Re: Need Macro to do Basic Repetitive Tasks
- From: BruceM
- Re: Need Macro to do Basic Repetitive Tasks
- References:
- Re: Need Macro to do Basic Repetitive Tasks
- From: tina
- Re: Need Macro to do Basic Repetitive Tasks
- Prev by Date: Re: Need Macro to do Basic Repetitive Tasks
- Next by Date: Re: checkbox doesn't filter query
- 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
|