Solved

Microsoft VBScript compilation error '800a03ee'

Posted on 2009-06-28
7
480 Views
Last Modified: 2012-05-07
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

0
Comment
Question by:WebSpyder
  • 3
  • 2
7 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 24731833
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
 
LVL 16

Expert Comment

by:sunithnair
ID: 24736148
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
 
LVL 84
ID: 24736445
.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
 
LVL 16

Expert Comment

by:sunithnair
ID: 24742963
Sorry I did not know that. Thanks for the information. I have not used Access 2007.
0
 
LVL 84
ID: 25960739
My suggestion here: http:#a24731833 would solve this issue. The syntax was wrong; I corrected it.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question