data provider or other service returned an e_fail status

paulcherianc

Registered User.
Local time
Yesterday, 23:06
Joined
Aug 15, 2013
Messages
86
I am trying to pull a query from access to excel and got an error message as attached saying "data provider or other service returned an e_fail status"

Any Experts!!:banghead:
 

Attachments

  • Capture.JPG
    Capture.JPG
    78.9 KB · Views: 342
I don't like the space in the database name, try to rename it.
 
Tried but no hope! Same error!
 
Okay - in which line do you get the error?
 
you have a space in your database name you must enclosed the whole path in bracket:

[C:\users\pcherian\Desktop\HRProRev 29.accdb]

why don't you use DAO instead, its much simpler.

Dim db as dao.database
dim rs As dao.recordset
dim sQry as string

sQry = "SELECT * FROM Final_Export_3 IN '[C:\users\pcherian\Desktop\HRProRev 29.accdb]';"
rs = db.Openrecordset(sQry, dbOpensnapshot)
' do the import in excel here
'...
'...
rs.close
set rs=nothing
set db=nothing
 

Users who are viewing this thread

Back
Top Bottom