#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Confused

I am trying to insert a VFP table with an ADO Connection utilizing the
VFPOLEDB.1 driver.

My SQL (being generated in excel/vba) is (excluding the semi-colons - there
for Fox Pro Command window)

INSERT INTO SY(;
adp, aicalctype, aidaybasis, aidaycount, amortmeth, best, bloomberg,
bridge, [carry], cbsycode, ;
clcode, cnvcur, cnvinto, cocode, commrate, cpncur, cpnformula, cpnfreq,
cpntype, cucode, ;
cusip, derivative, euroclear, excode, excucode, feedquery, gensy2desc,
gensycode, gensydesc, gensymbol2, ;
gensymbol3, gsco, gscoprime, gsstcode, gssycode, idc, ilx, indgr, isin,
isvarrate, ;
lehm, login, merrin, moody, motc, msco, oldsycode, pikformula, preffeed,
procucode, ;
pscucode, quik, refundtype, remarks, reuters, rlbrcode, rlsycode, sacode,
salesman, sedol, ;
series, sgcode, shark, smcode, sncode, sp, [status], stcode, sycode,
sydesc, ;
[time], aifirstdt, aifirstset, announcedt, cnvfirstdt,
cnvlastdt, cpnchgdt, cpnfirstdt, [date], expiredt, ;
filedate, maturity, nextcalldt, nextputdt, syid, accreted,
accretion, amortflag, contract, [convert], ;
cxflag, dbtdefault, evwarning, ismethod, multchg, preferred, pricemult,
reportchg, secfee, ;
sygen, ;
sygen2, uniqueid, accrerate, accrrate, amortfact,
callprice, cnvprice, cnvratio, cpnchgrate, cpnrate, ;
facevalue, fxrate, initprice, initsize, isfixrate, [margin], marketable,
[mult], nfafee, notional, ;
oshares, outshares, outstand, putprice, roundlot, strike) VALUES(;
'65654', '', '360', '30', '', '', '61745P817', '', '', '', ;
'', '', '', '', '', '', '', '', '', 'USD', ;
'61745P817', '', '', 'NYSE', 'USD', '', '', '', 'IMB2', '', ;
'', '', '', '', '', '', '', '', 'US61745P8178', 'N', ;
'', 'SYMAN', '', '', '', '', '', '', '', 'USD', ;
'USD', '', '', '', '', '', '', '', '', '2459923', ;
'', 'ZERO', '', 'CSH', '0001', '', 'A', 'STO', 'IMB2', 'MORGAN STANLEY INSD
MUNI BD', ;
'10:29', {}, {}, {}, {}, {}, {}, {}, {^2003-09-16}, {}, ;
{}, {}, {}, {}, 0, .T., .T., .T., .T., .F., ;
..T., .T., .T., .T., .T., .F., 0, .T., .T., .F., ;
..T., .T.,0, .0000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ;
0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3, 1.0, 0.0, 0, ;
0, 0, 0.0, 0.0, 0, ;
0.0)

And works fine in the Command Window.
However it generates the old "Syntax Error" when
running the VBA and executing.

Any ideas would be appreciated as I have run into a gauntlet I belive.

My Connex string is as follows: "Provider=VFPOLEDB.1;Data
Source=\\<MACHINE_IP\PATH\DB.DBC;Mode=ReadWrite;E xtended Properties="";User
ID=SYMAN;Password=SYMAN;Mask Password=False;Cache
Authentication=False;Encrypt Password=False;Collating Sequence=GENERAL

All the datatypes work thus I am able to do the insert from the command win.


?????

Perplexed


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Confused

NM
I got it myself. It wanted a full path to the dbf so instead of
INSERT INTO SY
use
INSERT INTO \\machine\path\SY.dbf
BTW yer all newbs

LOL
j/k


"Ranmara" wrote in message
...
I am trying to insert a VFP table with an ADO Connection utilizing the
VFPOLEDB.1 driver.

My SQL (being generated in excel/vba) is (excluding the semi-colons -

there
for Fox Pro Command window)

INSERT INTO SY(;
adp, aicalctype, aidaybasis, aidaycount, amortmeth, best, bloomberg,
bridge, [carry], cbsycode, ;
clcode, cnvcur, cnvinto, cocode, commrate, cpncur, cpnformula, cpnfreq,
cpntype, cucode, ;
cusip, derivative, euroclear, excode, excucode, feedquery, gensy2desc,
gensycode, gensydesc, gensymbol2, ;
gensymbol3, gsco, gscoprime, gsstcode, gssycode, idc, ilx, indgr, isin,
isvarrate, ;
lehm, login, merrin, moody, motc, msco, oldsycode, pikformula, preffeed,
procucode, ;
pscucode, quik, refundtype, remarks, reuters, rlbrcode, rlsycode, sacode,
salesman, sedol, ;
series, sgcode, shark, smcode, sncode, sp, [status], stcode, sycode,
sydesc, ;
[time], aifirstdt, aifirstset, announcedt, cnvfirstdt,
cnvlastdt, cpnchgdt, cpnfirstdt, [date], expiredt, ;
filedate, maturity, nextcalldt, nextputdt, syid, accreted,
accretion, amortflag, contract, [convert], ;
cxflag, dbtdefault, evwarning, ismethod, multchg, preferred, pricemult,
reportchg, secfee, ;
sygen, ;
sygen2, uniqueid, accrerate, accrrate,

amortfact,
callprice, cnvprice, cnvratio, cpnchgrate, cpnrate, ;
facevalue, fxrate, initprice, initsize, isfixrate, [margin], marketable,
[mult], nfafee, notional, ;
oshares, outshares, outstand, putprice, roundlot, strike) VALUES(;
'65654', '', '360', '30', '', '', '61745P817', '', '', '', ;
'', '', '', '', '', '', '', '', '', 'USD', ;
'61745P817', '', '', 'NYSE', 'USD', '', '', '', 'IMB2', '', ;
'', '', '', '', '', '', '', '', 'US61745P8178', 'N', ;
'', 'SYMAN', '', '', '', '', '', '', '', 'USD', ;
'USD', '', '', '', '', '', '', '', '', '2459923', ;
'', 'ZERO', '', 'CSH', '0001', '', 'A', 'STO', 'IMB2', 'MORGAN STANLEY

INSD
MUNI BD', ;
'10:29', {}, {}, {}, {}, {}, {}, {}, {^2003-09-16}, {}, ;
{}, {}, {}, {}, 0, .T., .T., .T., .T., .F., ;
.T., .T., .T., .T., .T., .F., 0, .T., .T., .F., ;
.T., .T.,0, .0000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ;
0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3, 1.0, 0.0, 0, ;
0, 0, 0.0, 0.0, 0, ;
0.0)

And works fine in the Command Window.
However it generates the old "Syntax Error" when
running the VBA and executing.

Any ideas would be appreciated as I have run into a gauntlet I belive.

My Connex string is as follows: "Provider=VFPOLEDB.1;Data
Source=\\<MACHINE_IP\PATH\DB.DBC;Mode=ReadWrite;E xtended

Properties="";User
ID=SYMAN;Password=SYMAN;Mask Password=False;Cache
Authentication=False;Encrypt Password=False;Collating Sequence=GENERAL

All the datatypes work thus I am able to do the insert from the command

win.


?????

Perplexed




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
confused in the o.c. cocomymy New Users to Excel 1 October 30th 08 10:42 PM
Now I'm Really Confused doss04 New Users to Excel 5 October 14th 08 04:38 AM
Confused Dale Excel Worksheet Functions 1 March 28th 07 12:21 AM
Very confused.... mizterbusy Excel Discussion (Misc queries) 1 September 24th 06 06:44 AM
Confused Karmen New Users to Excel 4 February 24th 06 08:27 PM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"