Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Provider error '80004005'

Status
Not open for further replies.

JonR

Technical User
Feb 21, 2001
22
US
Does anyone know if this is a common error?

The complete error message is:

Provider error '80004005'
Unspecified error
/Flashpoint/programsearch.asp, line 19

Line 19 refers to: conn.open connstr,"",""

Can someone please tell me what this means?

Thanks,

(I'm a web designer implementing an ASP script - but not experienced at all w/ ASP.)
 
Have you tried taking out those two empty strings there?

Maybe that would clear it up.

Otherwise, post the contents of your connstr variable (and how you built it up)...

 
Thanks for the quick reply, Link9.

Here's the script:

<%
if Request(&quot;activitytype&quot;) <> &quot;&quot; then
activitytype = Request(&quot;activitytype&quot;)
Session(&quot;Lastacttype&quot;) = activitytype
else
if Session(&quot;Lastacttype&quot;) <> &quot;&quot; then
activitytype = Session(&quot;Lastacttype&quot;)
end if
end if
' open connect to the database
Set conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
fname = server.mappath(&quot;fp1.mdb&quot;)
connstr = &quot;Driver={Microsoft Access Driver (*.mdb)}; DBQ=&quot; & fname
conn.open connstr,&quot;&quot;,&quot;&quot;
Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)

' get select list with all activities in the database
sql = &quot;SELECT a.ActivityName, at.ActivityTypeID, at.ActivityTypeDescription &quot; &_
&quot;FROM Activities AS a, ActivityType AS at &quot; &_
&quot;WHERE at.ActivityTypeDescription = '&quot; & activitytype & &quot;'&quot; &_
&quot;AND at.ActivityTypeID = a.ActivityTypeID &quot; &_
&quot;ORDER BY ActivityName;&quot;
rs.open sql, conn, 3, 3
%>

Any insight you'd be able to provide would be appreciated.

Thanks again.
 
Try this on --
Code:
strconn=&quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&quot;
strconn=strconn & server.mappath(fp1.mdb) & &quot;;&quot;

conn.connectionString = strConn
conn.open

The above would replace --
Code:
fname = server.mappath(&quot;fp1.mdb&quot;)
connstr = &quot;Driver={Microsoft Access Driver (*.mdb)}; DBQ=&quot; & fname
conn.open connstr,&quot;&quot;,&quot;&quot;

The oledb way to connect to an access database is preferred over the way you have... Actually, a DSN is the best way, but sometimes that's not possible for whatever reason.

Hope it helps! :)
Paul Prewett
 
Thanks again for your help, Paul. I appreciate it. Unfortunately it's still not working properly. May be something on my end. I'll try again on Monday.

Jon
 
looks like I capitalized the strConn there, where it should have been all lowercase...

oops...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top