Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


--
joaovtt
------------------------------------------------------------------------
joaovtt's Profile: http://www.excelforum.com/member.php...o&userid=24286
View this thread: http://www.excelforum.com/showthread...hreadid=384358

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default OLEDB Error on Excel Macro


Any help??


--
joaovtt
------------------------------------------------------------------------
joaovtt's Profile: http://www.excelforum.com/member.php...o&userid=24286
View this thread: http://www.excelforum.com/showthread...hreadid=384358

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
Microsoft.Jet.OLEDB error with csv file names [email protected] Excel Discussion (Misc queries) 0 May 14th 08 02:21 PM
Using OleDB to get data from Excel dvd00 Excel Discussion (Misc queries) 1 November 30th 04 04:32 PM
OLEDB Help Excel 2002 Brian Belger Excel Programming 1 September 28th 04 08:56 AM
After oledb inset in Excel, 'Cannot Access file' error on Excel Prachi Excel Programming 2 July 12th 04 10:51 AM
EXCEL AND OLEDB Yama Excel Programming 4 February 25th 04 03:29 PM


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

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

About Us

"It's about Microsoft Excel"