Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-02-02
5
Medium Priority
?
83 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 49

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

926 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