+ Reply to Thread
Results 1 to 2 of 2

OLEDB Error on Excel Macro

  1. #1
    Registered User
    Join Date
    06-14-2005
    Posts
    8

    OLEDB Error on Excel Macro

    Hi All,

    I've created an Excel Macro that has the following code:

    con.Execute "INSERT INTO Estr_Materiais SELECT * FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0','Excel 8.0;HDR=YES;IMEX=1;Database=" & caminhoExport & arquivoExport & "','SELECT CodZFoccus_IV, CodInterno_IV, CodZFoccus_IF, CodInterno, Quantidade, Unid, Descricao, Now() AS Data FROM [MatImport$]');"



    When I execute this code accessing a local SQL Server, it's work fine. But, when I execute macro accessing a remote SQL Server I receive the following error message:

    " ... '-2147217900 (80040e14)': OLE DB Provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error."


    Any help will be precious!!!

    Best regards,
    JV.

  2. #2
    Registered User
    Join Date
    06-14-2005
    Posts
    8

    RE: OLEDB Error on Excel Macro

    Any help??

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1