Solved

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

Posted on 2015-02-02
5
69 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 47

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

Independent Software Vendors: 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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 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