Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing a text file from a server to an ACCESS database

Status
Not open for further replies.

jaggar

Programmer
Jan 23, 2003
21
US
I am trying to import records from a text file (which is located in a folder on our server) to an ACCESS database. My problem is that I have defined the specification file with delimiters between each field. The last field in the record is defined as a 'comment' with a data type memo. My problem is that when someone presses enter and continues to type in the comment field, it goes to the next line in the text file. When access tries to read the next record, the comment field is read as the next record. (positional) Access gives an error because the first field in a record is defined as a date field, so the record is not imported. Can Access or Visual Basic read a variable length file into an access database? Could someone give me an example if so?

Thank, jaggar
 
Is it possible, size-wise, for you to read the file line by line?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top