ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How To Delete First Record In A Text File (https://www.excelbanter.com/excel-programming/316096-re-how-delete-first-record-text-file.html)

MarkInSalemOR

How To Delete First Record In A Text File
 
Frank,

If you are using the Microsoft Scripting Run-time in the text stream use
SkipLine. And don't even save the line. Skip the first line and then start
saving after that. You can find out about the scripting run-time at this link
http://msdn.microsoft.com/library/de...ectlibrary.asp

If that doesn't work.
If you can save the first line then delete it with the ado recordset delete
method. And about the delete method at
http://msdn.microsoft.com/library/de...mthdeletex.asp

~Mark

"Frank" wrote:

Hi I am using VBA to add a FTP text file into Access table but I need to
remove the first record can some help please?.



All times are GMT +1. The time now is 07:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com