Microsoft VBScript compilation error '800a03ee'

How could I correct this ASP code?

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/testdatabase1.asp, line 35
Server.MapPath("/Server.MapPath("/mytestdatabase062509.accdb").mdb") & ";" &_
------------------------------------------------------------^
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &_
Server.MapPath("/Server.MapPath("/mytestdatabase062509.accdb").mdb") & ";" &_
"User ID=********;Password=*******"

Open in new window

WebSpyderAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Connect With a Mentor Infotrakker SoftwareCommented:
Server.MapPath("mytestdatabase062509.accdb")

or

Server.MapPath("mytextdb.mdb")

Or whatever your database is named ... search on Server.MapPath for syntax examples, your's is munged badly.
0
 
sunithnairCommented:
I think this should solve the problem provided the mdb file is named mytestdatabase062509.accdb and resides in the root folder.
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &_
Server.MapPath("/mytestdatabase062509.accdb.mdb") & ";" &_
"User ID=********;Password=*******"

Open in new window

0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
.accdb is the extension for an ACCESS 2007 (ACE format) database.

.mdb is the extension for earlier version (2003 or before, Jet format) database.
0
 
sunithnairCommented:
Sorry I did not know that. Thanks for the information. I have not used Access 2007.
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
My suggestion here: http:#a24731833 would solve this issue. The syntax was wrong; I corrected it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.