Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-2008, 02:06 PM
=?Utf-8?B?Vmk=?=
 
Posts: n/a
Importing a file - with timestamp (datestamp) within the imported

Hello,

While importing a file in access - I would like to put a datestamp within
the imported file. For example: Import an excel file, I would like to have
new column created called "DateStamp" of the date that the file was imported
for every record. Any ideas?

Thanks in advance
Y
Reply With Quote
  #2 (permalink)  
Old 08-12-2008, 02:46 PM
a a r o n . k e m p f @ g m a i l . c o m
 
Posts: n/a
Re: Importing a file - with timestamp (datestamp) within the imported

use SQL Server ETL tools like DTS or SSIS.
they are 100 times more powerful than Jet macros



On Aug 12, 6:06*am, Vi <V...@discussions.microsoft.com> wrote:
> Hello,
>
> While importing a file in access - I would like to put a datestamp within
> the imported file. For example: Import an excel file, I would like to have
> new column created called "DateStamp" of the date that the file was imported
> for every record. Any ideas?
>
> Thanks in advance
> Y


Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 02:58 PM
pietlinden@hotmail.com
 
Posts: n/a
Re: Importing a file - with timestamp (datestamp) within the imported

On Aug 12, 8:06*am, Vi <V...@discussions.microsoft.com> wrote:
> Hello,
>
> While importing a file in access - I would like to put a datestamp within
> the imported file. For example: Import an excel file, I would like to have
> new column created called "DateStamp" of the date that the file was imported
> for every record. Any ideas?
>
> Thanks in advance
> Y


If you're importing all of this into an existing table, just modify
the table structure to add the date field and then after the import,
just run an update query on the table.

UPDATE MyTable
SET DateStamp = Now()
WHERE DateStamp IS NULL;
Reply With Quote
  #4 (permalink)  
Old 08-12-2008, 04:06 PM
=?Utf-8?B?S2xhdHV1?=
 
Posts: n/a
RE: Importing a file - with timestamp (datestamp) within the imported

ignore arron kempf. He is a known troll.
peitlinden has the answer, but to add on to it, if your import creates the
table, it will not have an additional field for you to update with a
timestamp.
I would suggest you create a table to receive the Excel data. Import your
excel data to the existing table then run the update query to add the
timestamp.
Now, a way to get a more accurate timestamp would be, instead of importing
the excel data directly, link to the excel sheet. Then run an append query
that copies the data from the linked excel table to the Access table and
includes a calculated field that puts Now() in the timestamp field of the
Access table.
--
Dave Hargis, Microsoft Access MVP


"Vi" wrote:

> Hello,
>
> While importing a file in access - I would like to put a datestamp within
> the imported file. For example: Import an excel file, I would like to have
> new column created called "DateStamp" of the date that the file was imported
> for every record. Any ideas?
>
> Thanks in advance
> Y

Reply With Quote
  #5 (permalink)  
Old 08-12-2008, 09:11 PM
=?Utf-8?B?Vmk=?=
 
Posts: n/a
RE: Importing a file - with timestamp (datestamp) within the impor

Thank you very much.

"Klatuu" wrote:

> ignore arron kempf. He is a known troll.
> peitlinden has the answer, but to add on to it, if your import creates the
> table, it will not have an additional field for you to update with a
> timestamp.
> I would suggest you create a table to receive the Excel data. Import your
> excel data to the existing table then run the update query to add the
> timestamp.
> Now, a way to get a more accurate timestamp would be, instead of importing
> the excel data directly, link to the excel sheet. Then run an append query
> that copies the data from the linked excel table to the Access table and
> includes a calculated field that puts Now() in the timestamp field of the
> Access table.
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "Vi" wrote:
>
> > Hello,
> >
> > While importing a file in access - I would like to put a datestamp within
> > the imported file. For example: Import an excel file, I would like to have
> > new column created called "DateStamp" of the date that the file was imported
> > for every record. Any ideas?
> >
> > Thanks in advance
> > Y

Reply With Quote
  #6 (permalink)  
Old 08-12-2008, 10:45 PM
Bob Quintal
 
Posts: n/a
Re: Importing a file - with timestamp (datestamp) within the imported

Ignore the m Aaron. He's just letting off steam. Or methane.

As to importing and adding a date stamp, if you import to an
existing table, just add the column to the end of the table, with
type = Date/Timeand set its default value to now(). Any records
added will have the field populated.

If you have Access create a new table for each import, you add the
column you will need to add the column, and run an update query to
set the value right after importing.

You might be able to set the additional column using an import
specification, but I've never experimented with that.


Q


"a a r o n . k e m p f @ g m a i l . c o m" <aaron.kempf@gmail.com>
wrote in
news:898d29a5-1a6e-4442-aa85-e05ff86a4f69
@o40g2000prn.googlegroups.co
m:

> use SQL Server ETL tools like DTS or SSIS.
> they are 100 times more powerful than Jet macros
>
>
>
> On Aug 12, 6:06*am, Vi <V...@discussions.microsoft.com> wrote:
>> Hello,
>>
>> While importing a file in access - I would like to put a
>> datestamp within the imported file. For example: Import an excel
>> file, I would like to hav

> e
>> new column created called "DateStamp" of the date that the file
>> was impor

> ted
>> for every record. Any ideas?
>>
>> Thanks in advance
>> Y

>
>




--
Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **
Reply With Quote
  #7 (permalink)  
Old 08-13-2008, 04:10 AM
a a r o n . k e m p f @ g m a i l . c o m
 
Posts: n/a
Re: Importing a file - with timestamp (datestamp) within the imported

it's not called a TIMESTAMP.

It's called a date column.

timestamp is something completely different, thanks

-Aaron


On Aug 12, 8:06*am, Klatuu <Kla...@discussions.microsoft.com> wrote:
> ignore arron kempf. *He is a known troll.
> peitlinden has the answer, but to add on to it, if your import creates the
> table, it will not have an additional field for you to update with a
> timestamp.
> I would suggest you create a table to receive the Excel data. *Import your
> excel data to the existing table then run the update query to add the
> timestamp.
> Now, a way to get a more accurate timestamp would be, instead of importing
> the excel data directly, link to the excel sheet. *Then run an append query
> that copies the data from the linked excel table to the Access table and
> includes a calculated field that puts Now() in the timestamp field of the
> Access table.
> --
> Dave Hargis, Microsoft Access MVP
>
> "Vi" wrote:
> > Hello,

>
> > While importing a file in access - I would like to put a datestamp within
> > the imported file. For example: Import an excel file, I would like to have
> > new column created called "DateStamp" of the date that the file was imported
> > for every record. Any ideas?

>
> > Thanks in advance
> > Y


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



All times are GMT. The time now is 05:06 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Homeowner Loans | Credit Cards | Ringtone | Credit Cards



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114