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 Excel > first line in csv file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-04, 09:49
melona melona is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
first line in csv file

Hallo!
I’m trying to import a csv-file to Access2k through VBA. I have the problem that it’s just ignoring the first line, regardless if I say that it contains field names or not. I’m using the specifications ‚ImportSpec’ und the code:
DoCmd.TransferText acImportDelim, "ImportSpec", "tblImport", fname, False
Then with HasFieldNames = false!
I’m using a file with 20684 lines, but I get only 20683 imported.
Does anybody have an idea why it doesn’t work?
Reply With Quote
  #2 (permalink)  
Old 04-15-04, 09:58
melona melona is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
Re: first line in csv file

sorry, ignore this post!
I've postet it in the wrong forum.
Sorry, guys.


Quote:
Originally posted by melona
Hallo!
I’m trying to import a csv-file to Access2k through VBA. I have the problem that it’s just ignoring the first line, regardless if I say that it contains field names or not. I’m using the specifications ‚ImportSpec’ und the code:
DoCmd.TransferText acImportDelim, "ImportSpec", "tblImport", fname, False
Then with HasFieldNames = false!
I’m using a file with 20684 lines, but I get only 20683 imported.
Does anybody have an idea why it doesn’t 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On