Solved

Microsoft VBScript compilation error '800a03ee'

Posted on 2009-06-28
7
486 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

737 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