PC Review


Reply
Thread Tools Rate Thread

Daily Make Table Query

 
 
JD
Guest
Posts: n/a
 
      11th May 2010
I have a Make Table Query that I will need to run every morning. Is there
anyway to have the query add today's date to the name of the table (without
going in and changing it everyday) so that the new table won't overwrite
yesterday's table?
 
Reply With Quote
 
 
 
 
XPS35
Guest
Posts: n/a
 
      11th May 2010
=?Utf-8?B?SkQ=?= wrote:

>
> I have a Make Table Query that I will need to run every morning. Is there
> anyway to have the query add today's date to the name of the table (without
> going in and changing it everyday) so that the new table won't overwrite
> yesterday's table?


In VBA you can use a command like:
DoCmd.RunSQL "SELECT * INTO T" & Format(Date, "yyyymmdd") & " FROM T1"

--
Groeten,

Peter
http://access.xps350.com

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table: How do I make a monthly breakdown of daily data? Metro Microsoft Excel Worksheet Functions 6 5th Aug 2009 09:32 AM
Daily Make Table =?Utf-8?B?VGhlIFJlcG9ydCBHdXk=?= Microsoft Access 2 22nd Oct 2007 07:23 PM
Make Table Query-Running a make table query before you open a for =?Utf-8?B?dGtpcmNob2ZmMTU=?= Microsoft Access Macros 4 13th Apr 2007 11:50 PM
Averaging daily records of a query table =?Utf-8?B?ZHNpbXBraW5z?= Microsoft Access Queries 1 10th Aug 2006 12:58 PM
Daily & Weekly Table - Query for weekending Kevin Labore Microsoft Access Queries 0 31st Jan 2006 01:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 PM.