>Sergey,
>
>I have almost exactly the same code you have here, and I get an error:
>
>"OLE exception error: Exception code c0000005. OLE object may be corrupt."
On what line of code do you get this error? Did you install SP1?
VFP OLE DB provider is just one file vfpoledb.dll. You can try to unregister/register it using regsvr32. If it doesn't help try to copy from another PC with VFP 7 and register.
--sb--