If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > autonumber of imported sessions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-12, 11:17
Clicquot Clicquot is offline
Registered User
 
Join Date: Feb 2012
Posts: 1
autonumber of imported sessions

Hi everybody,

It's been ages since i've used access and i've a question related to importing external data.
I've a lot of csv files wich should be imported to one table. In this table, i'd like to have one column where I've a "counter" which adds a number to each and every row of the imported data.
So, when i've a csv file with 10 rows of data and I import it, the counter column in my table should write "001" in all imported rows.
When I import a second csv file into this table, the counter column should display "002"
When I import a third csv file.... it should show me "003" for all the data imported...
Etc...

Any idea on how I could manage to do this?
I'd appreciate all suggestions and help!
thanks a lot already and best regards!
Reply With Quote
  #2 (permalink)  
Old 02-02-12, 12:25
SoftwareMatters SoftwareMatters is offline
Registered User
 
Join Date: Mar 2009
Location: Dorset
Posts: 78
You could add a 'Counter' column to your .csv files or if you are using a linked .csv and an append query you could write the required number into the correct field in the query.
__________________
Regards
JD

Bespoke Access Database Design and Development Services
Software Matters - Simple Solutions That Work!
Reply With Quote
Reply

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

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