J
Jesper F
I need to link to a textfile from the database so that the file appears as
an attached datasource in the database window. I can do it manually but I
have to do it with code.
I'm using the following but what else do I need for it to show up in the db
window?
Thanks.
--
Dim db As DAO.Database
Dim tdf As TableDef
Dim sConnect As String
Set db = CurrentDb
sConnect = "Text;DSN=Citymail Link
specification4;FMT=Fixed;HDR=NO;IMEX=2;CharacterSet=1252;DATABASE="c:\testfi
lename.txt"
Set tdf = db.CreateTableDef("test", , , sConnect)
an attached datasource in the database window. I can do it manually but I
have to do it with code.
I'm using the following but what else do I need for it to show up in the db
window?
Thanks.
--
Dim db As DAO.Database
Dim tdf As TableDef
Dim sConnect As String
Set db = CurrentDb
sConnect = "Text;DSN=Citymail Link
specification4;FMT=Fixed;HDR=NO;IMEX=2;CharacterSet=1252;DATABASE="c:\testfi
lename.txt"
Set tdf = db.CreateTableDef("test", , , sConnect)