473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Date stamp on tables

Can anybody help to create code which would
create new table from linked table and additionally will add date
stamp for the name of new table? For example tblHello is linked table
and the code would create a table tblHello311204 at the 31st december
of 2004.

Be well,
Ivars
Nov 13 '05 #1
1 2425
You could run a Make Table query.

strSQL = "SELECT Table1.* INTO tblHello" & Format(Date, "ddmmyy") & " FROM
tblHello;"
CurrentDb.Execute strSQL, dbFailOnError

For sorting purposes, you may prefer "yymmdd". This will sort these tables
chronologically in the database window. Since you said this would be run on
the 31st, I used the Date function. You could also specify a particular date
if you wished. This will also include the data from the linked table.

Now, for the real question. Why are you doing this? If you're just wanting
to segregate items performed during certain months, then it would be better
to have a date field in each record that tells you what date it was
performed and use a query to limit your results to the desired date or date
range.

--
Wayne Morgan
MS Access MVP
"alpha_male" <al********@inbox.lv> wrote in message
news:64**************************@posting.google.c om...
Can anybody help to create code which would
create new table from linked table and additionally will add date
stamp for the name of new table? For example tblHello is linked table
and the code would create a table tblHello311204 at the 31st december
of 2004.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Don | last post by:
Hi all, With regards to the following, how do I append the datetimestamp to the filenames in the form? The files are processed using the PHP script that follows below. Thanks in advance,...
0
by: alpha_male | last post by:
Thank you, Wayne, for your answer. That was exactly what I needed. There was tiny mistake strSQL statement (Table1.* should be tblHello.* ). To answer your question why I need this. I have table...
6
by: Mike Charney | last post by:
Is there a way to check a files date and time stamp from VBA in access. I have a need check a date stamp on a file that I am importing. Thanks in advance, Mike m charney at dunlap hospital...
5
by: Des | last post by:
I have to do an events calender for a church. The events display will be limited to that week. If someone went in today Wed 24th I want to display 21st to 27th. I dont want any code samples, just...
3
by: phried1 | last post by:
I have created a form and inserted the following tables: Date Entered Time Entered Date Modified Time Modified Essentially how and where can I have these dates and times recorded so when the...
1
MitchR
by: MitchR | last post by:
I have created a text box and scripted it to receive a line of text and current date upon completion of a scripted event. My question is this. I need to script this text box and date stamp to...
4
by: SilentThunderer | last post by:
Hey folks, Let me start out by letting you know what I'm working with. I'm building an application in VB 2005 that is basically a userform that employees can use to "Clock in". The form...
1
omerbutt
by: omerbutt | last post by:
hi there i am making a page where customer can edit his current order, the tools i am using are mysql and php i am using 2 tables for this 1.rage_uk_bulk_order 2.rage_uk_bulk_order_products i...
5
by: Lewe22 | last post by:
I have a table with a date stamp on it. unique_id dist_created_date 1 01/06/2008 2 01/06/2008 3 05/06/2008 4 22/06/2008And a table with...
16
by: W. eWatson | last post by:
Are there some date and time comparison functions that would compare, say, Is 10/05/05 later than 09/22/02? (or 02/09/22 format, yy/mm/dd) Is 02/11/07 the same as 02/11/07? Is 14:05:18 after...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.