AllExperts > Using MS Access 
Search      
Using MS Access
Volunteer
Answers to thousands of questions
 Home · More Using MS Access Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Bob Heifler
Expertise
ALL MICROSOFT ACCESS DESIGN AND PROGRAMMING QUESTIONS 
Free Microsoft Access Tutorial Videos are available to you at my web site. Fifteen years of Microsoft Access experience allows me to answer most of your questions. Common question example files available here.


Experience
Microsoft Access programming since 1994. Support for all versions.

Publications
My Microsoft Access articles are published at:DailyAccessTips.com

Education/Credentials
UCLA GRAD, Member of Association of Database Developers

Awards and Honors
AccessToExcel.com has won several shareware awards for assisting analysts in moving data from MS Access to Excel.

Past/Present Clients
See some of my past clients here.

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Appending data at the end of each month

Using MS Access - Appending data at the end of each month


Expert: Bob Heifler - 6/29/2009

Question
Bob,

I need to create a trending report that gives a bar graph of all project's status at the end of each of the last 4 months. For example:



March: Not Started (1); Active (2); Completed (3)
April: Not Started (2); Active (3); Completed (1)
May: Not Started(4); Active (2); Completed(3)
June: Not Started (3); Active (1); Completed (4)



I know how to create the report, but I'm not sure how I can capture these same projects at 4 different points in time. (These are the same projects and over the months they'll be updated from one status to the next). I could do an append query, which a user would click at the end of each month, but that would be an additional responsibility for the user that I'd like to avoid.



Ideally, I'd like for the database (whether opened or closed) to automatically append the projects (along with their status') at the end of each month. This way, there is no responsibility placed on the user and the information is always accurate.



How would you recommend that I try to accomplish this?



Thanks in advance for your help!

Adam

Answer
Adam,
Create a table to store the last date the append query ran.
Use a macro you create and name 'autoexec' that will trigger code to run the query only if the current date is the last date of month and the table shows it hasn't been run for current month. Then have it update the table with current date. If the program was not started on end of month, it would have to contain more logic of course.
Bob Heifler

MyAccessProgram.com
DailyAccessTips.com

Contact at:
http://myaccessprogram.com/Contact.html

Find example files at:
http://myaccessprogram.com/Download.html

Find free video tutorials at:
http://myaccessprogram.com/Tutorial.html

Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.