473,667 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ 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 2444
You could run a Make Table query.

strSQL = "SELECT Table1.* INTO tblHello" & Format(Date, "ddmmyy") & " FROM
tblHello;"
CurrentDb.Execu te 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********@inb ox.lv> wrote in message
news:64******** *************** ***@posting.goo gle.com...
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
19610
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, Don Following running on client-side:
0
304
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 in accounting program and in order to track changes in the VAT, I have made queries which would track these changes. I had to only indicate which tables(they have the same structure) I need to compare. After each month I am planning to run your...
6
13589
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 dot org
5
2103
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 the functions that find the day of week and a function that can (in this case) subtract 3 days to get sunday and add 7 for saterday. I can do the rest. Desmond.
3
17595
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 user creates a new record that date and time stamp is populating as well as if the user modifies the data, that date and time stamp is populationg. Whereby if the record was created yesterday, and the user modified the record today, i would see...
1
1680
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 receive multiple entries. The Date stamp is captured by a field in my primary table and saved. I need to be able to script multiple date stamp. Here is my code for the date Stamp: !! = "Date of Execution " & myDate & "; "
4
6802
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 allows the employee to enter their UserID and select "Login" or "Logout" and then click a submit. When the submit button is clicked, I want the application to dum the NT Userename, UserID, status (Login or Logout) and a date/time stamp into an MS Access...
1
4800
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 have the time stamp in the 1st table rage_uk_bulk_order and all the other information in the 2nd table iall is going fine it is fetching all the records for the current user/customer but i want to display only those orders from the table that the...
5
3638
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 date ranges on it. month_id start_date end_date pay_month 07-APRMAY08 20/05/2008 19/06/2008 JUN-08 07-MAYJUN08 20/06/2008 19/07/2008 JUL-08 07-JUNJUL08 20/07/2008 19/08/2008 AUG-08What i want to do...
16
4447
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 22:02:51? (24 hour day is fine) How about the date after 02/28/04 is 02/29/04, or the date after 09/30/08 is 10/01/08?
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8365
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8646
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6203
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.