Solved

VBA to run query make table query to create new unique table with date stamp

Posted on 2015-02-02
5
62 Views
Last Modified: 2016-02-11
Hi,
I see how I can use VBA to execute a query.
http://www.experts-exchange.com/Database/MS_Access/Q_28260015.html
and what I need is to be able to execute the query (make table) and at the same time dictate the name of the table as I'd like to change the table each month AND KEEP the previous months table.

I'm doing sort of a modified backup of some tables each month and would rather not have the data appended into a table, the use of the tables is more easily managed if they are separated by month.

Thanks,
0
Comment
Question by:ghettocounselor
  • 2
5 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40584516
Would it not make far more sense to have just one table but with an extra field in it called MONTH and you populate this with your month identifier?  This separates them by month and makes your life a lot simpler.
0
 

Author Comment

by:ghettocounselor
ID: 40584775
Hi Neilsr, To you and I yes it would. To the end user of the tables that means one more thing they've got to manage in their minds hence the request that they have a table for each month. Basically the end user wants to be able to look at a month (around 5k rows) more like an XLS rather than have to query the table for a given month. I'm slowly working on migrating the users to a more thorough understanding (and use) of MS Access, 1st step is to get them to open the product, even getting there was a challenge. Sorry for long winded reply.
0
 

Accepted Solution

by:
ghettocounselor earned 0 total points
ID: 40621161
Note to self here. After pondering this a bit I think I will look into just using an append table process for the backup. It does make the process of later querying the table a bit more cumbersome for users that want to (in this use case) review history but given the lack of interest here in solving the problem apparently staying out of VB is the easiest way to go.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40684214
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now