Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDB Provider Command Problem
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00628455
Message ID:
00628463
Views:
22
>The following code works in the VFP7 Command Window. I tried to 'port it to VBScript and it does not work. However, the APPEND command is supported by the OLEDB driver, according the MSDN.
>
>Set oConn = CreateObject("ADODB.Connection")
>oConn.ConnectionString = "Provider=VFPOLEDB.1;Data Source=c:\wintemp\ttdata\ttdata.dbc"
>oConn.Open
>oConn.Execute("use benefittype in 0") 'benefittype is an existing table
>oConn.Execute("append blank ")
>
>Error message:
>Microsoft OLE DB Provider for Visual FoxPro: One or more errors occurred during processing of command.


This may be a stupid comment, as I have not used it or tried your code, but I see that you "use benefittype in 0" then immediately tries APPEND BLANK. But, is your table selected?


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform