Re: Importing file.csv into Access using a VBS
- From: "Carlos Garcia via AccessMonster.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Apr 2005 22:14:27 GMT
Hi John,
Thank you again! I have included below a peace of my script and I'm getting
this error --> "Table 'Table1' already exists, Code: 800A0BC2, source:
DAO.Database" Please, let me know how can I solve this. Thank you!
For j = 0 To oDB.TableDefs.Count - 1
If oDB.TableDefs(j).Name = TableName Then
strSQL = "INSERT INTO " & TableName _
& " SELECT * FROM [Text;HDR=Yes;Database=" & FolderPath _
& ";].[" & TextFileName & "#" & Extension & "];"
oDB.Execute strSQL
Else
strSQL = "SELECT * INTO " & TableName _
& " FROM [Text;HDR=Yes;Database=" & FolderPath _
& ";].[" & TextFileName & "#" & Extension & "];"
oDB.Execute strSQL
End If
Next
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Importing file.csv into Access using a VBS
- From: Carlos Garcia via AccessMonster.com
- Re: Importing file.csv into Access using a VBS
- References:
- Importing file.csv into Access using a VBS
- From: Carlos Garcia via AccessMonster.com
- Re: Importing file.csv into Access using a VBS
- From: John Nurick
- Re: Importing file.csv into Access using a VBS
- From: Carlos Garcia via AccessMonster.com
- Re: Importing file.csv into Access using a VBS
- From: John Nurick
- Importing file.csv into Access using a VBS
- Prev by Date: Re: Importing file.csv into Access using a VBS
- Next by Date: Re: Importing file.csv into Access using a VBS
- Previous by thread: Re: Importing file.csv into Access using a VBS
- Next by thread: Re: Importing file.csv into Access using a VBS
- Index(es):
Relevant Pages
|