A trappable error (C0000006) occurred in an external object.

H

Hocke

I got these error when I try to open an excel file on a Windows 2003 server,
It works perfect on XP, 2000 and on my Windows 2003 server (test server) but
not on my online Windows 2003 server. I have tried "on error resume next" but
I got the same error!

Any suggestions?

Here is the code:
Code:
adOpenStatic=3
adLockReadOnly=1
adCmdText=1
adSearchForward = 1
count = 0
Set rs= server.CreateObject("Adodb.Recordset")
Set conn2 = server.CreateObject("ADODB.Connection")
connstr= "Provider=MSDASQL.1;Persist Security Info=False;Extended
Properties=""DBQ=" & server.MapPath(MapPath) & ";Driver={Microsoft Excel
Driver (*.xls)};DriverId=790;FIL=excel
8.0;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;ReadOnly=1;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;"";User Id=admin;"

conn2.Open connstr
rs.Open "SELECT email FROM emailrange", conn2, adOpenStatic,
adLockReadOnly, adCmdText
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top