Solved

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

Posted on 2015-02-02
5
76 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 48

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

623 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