J
Jack Hudson
Trying to move data from Visual FoxPro free table to MSA2003 table using
following code snippet:
Set conCnxn = New ADODB.Connection
strCnxn = "Provider = 'VFPOLEDB.1';" & _
"Data Source = 'z:\';" 'z: is mapped VFP database
conCnxn.Open strCnxn
Set rstSales = New ADODB.Recordset
strSQLSales = "INSERT INTO tblSalesHdr " & _
"SELECT * INTO tblSalesHdr FROM saleshdr " & _
"WHERE saleshdr.shd_trnnum > 1000 and saleshdr.shd_trnnum <1050"
rstSales.Open strSQLSales, conCnxn, adOpenStatic, adLockReadOnly,
adCmdText
rstSales.Open errors with msg "... tblSalesHdr.dbf not found"
I've searched MSDN and zillions of googled pages without hint as to why.
MSDN intimates that the ADO statement will figure out that tblSalesHdr is in
the current db (not a ADP), but that doesn't seem to be the case.
Any thoughts?
Thanks, Jack
following code snippet:
Set conCnxn = New ADODB.Connection
strCnxn = "Provider = 'VFPOLEDB.1';" & _
"Data Source = 'z:\';" 'z: is mapped VFP database
conCnxn.Open strCnxn
Set rstSales = New ADODB.Recordset
strSQLSales = "INSERT INTO tblSalesHdr " & _
"SELECT * INTO tblSalesHdr FROM saleshdr " & _
"WHERE saleshdr.shd_trnnum > 1000 and saleshdr.shd_trnnum <1050"
rstSales.Open strSQLSales, conCnxn, adOpenStatic, adLockReadOnly,
adCmdText
rstSales.Open errors with msg "... tblSalesHdr.dbf not found"
I've searched MSDN and zillions of googled pages without hint as to why.
MSDN intimates that the ADO statement will figure out that tblSalesHdr is in
the current db (not a ADP), but that doesn't seem to be the case.
Any thoughts?
Thanks, Jack