PC Review


Reply
Thread Tools Rate Thread

Auto Run Report each Month

 
 
Stacey Crowhurst
Guest
Posts: n/a
 
      30th Mar 2009
Is there a way to make access run a particular report
(rptWarrantyLatentDefects) monthly? Or does access have an auto reminder
function? Ideally, when I open the database for the first time each month it
will automatically run the report. I'm not sure if this is possible.

Thanks,
Stacey
 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      30th Mar 2009
Stacey,

You need to have a way of knowing whether this month's printing has been
done yet. The easiest way is to make a table with a single text field to
record LastPrintMonth. Then, in your macro, you can put a Condition like
this:
DLookUp("[LastPrintMonth]","PrintLog")<Format(Date(),"yyyymm")
Then, to complete the cycle, as well as the OpenReport action, add an
OpenQuery action to the macro to run an update query to update the
LastPrintMonth field in the PrintLog table to Format(Date(),"yyyymm")

Hope that makes sense.

The other way to do it is use Windows Task Manager to make a scheduled task
to run the macro every month.

--

Steve Schapel, Microsoft Access MVP


"Stacey Crowhurst" <(E-Mail Removed)> wrote in
message news:3E87ED40-C1A8-4A1B-91BB-(E-Mail Removed)...
> Is there a way to make access run a particular report
> (rptWarrantyLatentDefects) monthly? Or does access have an auto reminder
> function? Ideally, when I open the database for the first time each month
> it
> will automatically run the report. I'm not sure if this is possible.
>
> Thanks,
> Stacey


 
Reply With Quote
 
Stacey Crowhurst
Guest
Posts: n/a
 
      30th Mar 2009
Ok, I got most of it! I have the table, query and macro all working. Two
follow up questions though. (1) How do I suppress the pop up box that keeps
telling me I am going to update rows? and (2) how do I tell Access to run it
for me each month?

Thanks!
Stacey

"Steve Schapel" wrote:

> Stacey,
>
> You need to have a way of knowing whether this month's printing has been
> done yet. The easiest way is to make a table with a single text field to
> record LastPrintMonth. Then, in your macro, you can put a Condition like
> this:
> DLookUp("[LastPrintMonth]","PrintLog")<Format(Date(),"yyyymm")
> Then, to complete the cycle, as well as the OpenReport action, add an
> OpenQuery action to the macro to run an update query to update the
> LastPrintMonth field in the PrintLog table to Format(Date(),"yyyymm")
>
> Hope that makes sense.
>
> The other way to do it is use Windows Task Manager to make a scheduled task
> to run the macro every month.
>
> --
>
> Steve Schapel, Microsoft Access MVP
>
>
> "Stacey Crowhurst" <(E-Mail Removed)> wrote in
> message news:3E87ED40-C1A8-4A1B-91BB-(E-Mail Removed)...
> > Is there a way to make access run a particular report
> > (rptWarrantyLatentDefects) monthly? Or does access have an auto reminder
> > function? Ideally, when I open the database for the first time each month
> > it
> > will automatically run the report. I'm not sure if this is possible.
> >
> > Thanks,
> > Stacey

>
>

 
Reply With Quote
 
Steve Schapel
Guest
Posts: n/a
 
      30th Mar 2009
Stacey,

(1) Put in a SetWarnings/No action before the OpenQuery action.
(2) That's the whole point of the Condition. The macro will only run if the
LastPrintMonth is last month, i.e. this will be true the first time you open
the database for the month, and thenfor the rest of the month (because the
LastPrintMonth has been updated), the Condition will be false, and therefore
the macro will be ignored.

--

Regards
Steve


"Stacey Crowhurst" <(E-Mail Removed)> wrote in
message news:78EEC738-B815-4DE9-8030-(E-Mail Removed)...
> Ok, I got most of it! I have the table, query and macro all working. Two
> follow up questions though. (1) How do I suppress the pop up box that
> keeps
> telling me I am going to update rows? and (2) how do I tell Access to run
> it
> for me each month?
>



 
Reply With Quote
 
Stacey Crowhurst
Guest
Posts: n/a
 
      30th Mar 2009
Great, thanks Steve. I fixed the warnings. And I'll be able to test the
condition on Wendesday to make sure I typed everything in correctly!

Thanks again,
Stacey

"Steve Schapel" wrote:

> Stacey,
>
> (1) Put in a SetWarnings/No action before the OpenQuery action.
> (2) That's the whole point of the Condition. The macro will only run if the
> LastPrintMonth is last month, i.e. this will be true the first time you open
> the database for the month, and thenfor the rest of the month (because the
> LastPrintMonth has been updated), the Condition will be false, and therefore
> the macro will be ignored.
>
> --
>
> Regards
> Steve
>
>
> "Stacey Crowhurst" <(E-Mail Removed)> wrote in
> message news:78EEC738-B815-4DE9-8030-(E-Mail Removed)...
> > Ok, I got most of it! I have the table, query and macro all working. Two
> > follow up questions though. (1) How do I suppress the pop up box that
> > keeps
> > telling me I am going to update rows? and (2) how do I tell Access to run
> > it
> > for me each month?
> >

>
>
>

 
Reply With Quote
 
Steve Schapel
Guest
Posts: n/a
 
      31st Mar 2009
Stacey,

Just in case you're not all that familiar with macro Conditions, if the
Condition applies to more than one action in the macro (which it does in
your case - it applies to all of them, you don't want the macro to be
triggered at all if the Condition is not met), then you write the Condition
expression for the forst action, and then enter an ellipsis (i.e. 3 dots
.... ) in the Condition for the subsequent actions.

--

Steve Schapel, Microsoft Access MVP


"Stacey Crowhurst" <(E-Mail Removed)> wrote in
message news:A5BDF980-526E-44EA-98E7-(E-Mail Removed)...
> Great, thanks Steve. I fixed the warnings. And I'll be able to test the
> condition on Wendesday to make sure I typed everything in correctly!



 
Reply With Quote
 
 
 
Reply

« Macro | hi »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing Little Current month and Little Next month on Banner when it should little PRIOR month and little Next month. jake_allen10@hotmail.com Microsoft Outlook 0 3rd Nov 2006 07:30 PM
In a report I need to change a month number to a month name. =?Utf-8?B?V29ya21hZA==?= Microsoft Access Reports 1 19th Oct 2006 02:15 PM
Display month not month number in report? david.isaacks@mail.va.gov Microsoft Access Reports 4 21st Apr 2006 04:24 PM
HOW TO: Summary Page for Month-by-Month Report Wayfarer Microsoft Access Reports 1 19th Nov 2004 11:19 PM
Create a report with variable columns from month to month Bob & Gus Microsoft Access Reports 2 14th Apr 2004 03:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.