R
Richard
When I manually link to a tab delimited table (labor.txt) in Access it works
fine. However, when I use the following Access VB program many of the columns
are merged. Apparently the program is recognizing some of the tabs, but not
all.
Sub import()
Dim db As DAO.Database
Dim td As TableDef
Set db = CurrentDb
Set td = New TableDef
With td
.Connect = "Text;FMT=TabDelimited;HDR=Yes;DATABASE=C:\Documents and
Settings\u4rf9rmd\My Documents\CRREL Reports\Detsch Calc\;"
.SourceTableName = "labor.txt"
Debug.Print .Connect
.Name = "temptable"
End With
db.TableDefs.Append td
db.Execute "SELECT * INTO permanenttable FROM temptable"
db.TableDefs.Delete td.Name
End Sub
fine. However, when I use the following Access VB program many of the columns
are merged. Apparently the program is recognizing some of the tabs, but not
all.
Sub import()
Dim db As DAO.Database
Dim td As TableDef
Set db = CurrentDb
Set td = New TableDef
With td
.Connect = "Text;FMT=TabDelimited;HDR=Yes;DATABASE=C:\Documents and
Settings\u4rf9rmd\My Documents\CRREL Reports\Detsch Calc\;"
.SourceTableName = "labor.txt"
Debug.Print .Connect
.Name = "temptable"
End With
db.TableDefs.Append td
db.Execute "SELECT * INTO permanenttable FROM temptable"
db.TableDefs.Delete td.Name
End Sub