G
GM
I have this external VBS script that gets called to import a file into an
access dbase. How do I define the script so that it knows that the first line
in the file requests.csv is a header row?
Thanks
Greg
Option Explicit
Dim ojet
Dim odb
Dim strsql
strsql = "insert into customers select * from
text;hdr=yes;database=\\path\to\import file\;].requests.csv"
Set ojet = CreateObject("dao.dbengine.36")
Set odb = ojet.Opendatabase("\\path\to\dbase")
odb.execute strsql
odb.Close
access dbase. How do I define the script so that it knows that the first line
in the file requests.csv is a header row?
Thanks
Greg
Option Explicit
Dim ojet
Dim odb
Dim strsql
strsql = "insert into customers select * from
text;hdr=yes;database=\\path\to\import file\;].requests.csv"
Set ojet = CreateObject("dao.dbengine.36")
Set odb = ojet.Opendatabase("\\path\to\dbase")
odb.execute strsql
odb.Close