can't seem to make it work.
Here's my entire code for this include file, and the only thing I changed
here is the ID and password:
strConnection =
"Provider=Microsoft.Jet.OLEDB.4.0;DataSource="&ser ver.mappath("\")"&shape.md
b;User Id=x;Password=x;"
filePath = Server.MapPath("shape.mdb")
I did this because the Access db is in the same folder as the page which
calls it (not the include file, but the page which calls the include)
The error I get now is:
Expected end of statement
/gracearlingtoncom/shape/includes/shapedbinc.asp, line 5
strConnection =
"Provider=Microsoft.Jet.OLEDB.4.0;DataSource="&ser ver.mappath("\")"&shape.md
b;User Id=admin;Password=;"
----------------------------------------------------------------------------
------^In case the wrap is messing things up for you, the arrow is pointing
to the quote mark right after the closing parenthesis.
"Imran Salahuddin Khan" <it***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
why don't you use server.mappath???? like below
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="&server.mappath("relativepath")&";User
Id=xxxxx;Password=xxxxxxx;"
relative path may be any relative path of your access db...
!mran Khan
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!