G
Guest
Bob Barrows MVP in VBScripting suggested I ask this here so I apologize for
the borderline multipost in advance.
From a ".VBS" file I am running the following that Bob helped me with:
dim app
set app=creatobject("Access.Application")
app.OpenCurrentDatabase("U:\jeff.mdb")
app.DoCmd.TransferText acImportFixed, "My ImportSpec", _
"Name Of My Table where data will go, _
"Full Path Of Text File To Import"
app.quit acQuitSaveNone
set app = nothing
So, here is the problem. The above runs but imports the data incorrectly.
When I walk through the steps manually in the database, "get external data"
etc etc. and using the correct import spec the data comes in just fine.
No matter what, running the script brings in all the data but incorrectly.
there are four columns, name, acct, date, time.
when imported/appended acct number imports correctly, name and date in coumn
two, column three and four are empty and time is not brought in.
Any thoughts anyone?
Thank you.
the borderline multipost in advance.
From a ".VBS" file I am running the following that Bob helped me with:
dim app
set app=creatobject("Access.Application")
app.OpenCurrentDatabase("U:\jeff.mdb")
app.DoCmd.TransferText acImportFixed, "My ImportSpec", _
"Name Of My Table where data will go, _
"Full Path Of Text File To Import"
app.quit acQuitSaveNone
set app = nothing
So, here is the problem. The above runs but imports the data incorrectly.
When I walk through the steps manually in the database, "get external data"
etc etc. and using the correct import spec the data comes in just fine.
No matter what, running the script brings in all the data but incorrectly.
there are four columns, name, acct, date, time.
when imported/appended acct number imports correctly, name and date in coumn
two, column three and four are empty and time is not brought in.
Any thoughts anyone?
Thank you.