Solved

Microsoft VBScript compilation error '800a03ee'

Posted on 2009-06-28
7
479 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

930 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now