HI.
If U have made a site whit U'r DB connection in a inklude file U have to inklude the site om that site where U want to inklude the file !!
U'r inklude site can look like this:
<%
Dim objConn
Sub OpenDataBase(strDBPath)
Dim strProvider
strProvider = ""
strProvider = strProvider & "Provider=Microsoft.Jet.OLEDB.4.0;"
strProvider = strProvider & "Data Source=" & strDBPath & ";"
strProvider = strProvider & "Persist Security Info=False"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strProvider
End Sub
Sub CloseDataBase
objConn.Close
Set objConn = Nothing
End Sub
%>
Sub OpenDataBase(strDBPath)
is U'r connection whitout the place where U'r db is !!!
Sub CloseDataBase
is the funktion that close U'r connection/db !!!!
In U'r site where u have the inklude file U have a code that look like U'rs
Call OpenDataBase()
OPENDATABASE is like the SUB name in the connection site But U will get an error because U don't have write where U/the site can find the DB som changes the Call OpenDataBase() to:
Call OpenDataBase("d:\web\aspsoftware.dk\www\aero\aero.mdb")
Then the site will work and kan find the DB and remember the close funktion in u'r connection site Sub CloseDataBase !!!
Call CloseDataBase U have to write this in u'r bottom of u'r site !!!
Hope U understand my english and that this will help U !! 