Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old February 1st, 2006, 11:21 AM   #1
New Member
 

Join Date: Feb 2006
Age: 32
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 madhuri.t is on a distinguished road
code error with Access

Hi,
I am trying to access MS-Access Database on a remote server with the code below.
<%@LANGUAGE="VBSCRIPT"%>
<!--#INCLUDE virtual="/common/pricelist.asp"-->
<%
Dim ConnectionString
dim oConn
ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};" &_
"DBQ=\\Server167\BusOps\Maint_ Ren_ Web_ Page_ Upload_DB.mdb;DefaultDir=;UID=;PWD=;"

Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open "Select * from [Maintenance Renewal RAW Report] where country = 'AD'", ConnectionString
%>
and it gives me the following error.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
/Renewals/testfeb.asp, line 13

please suggest, how should I reslove it.
madhuri.t is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 1st, 2006, 01:47 PM   #2
Highly Reputable Member
 

Join Date: May 2005
Location: U.K
Age: 22
Posts: 728
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbramz will become famous soon enough
Re: code error with Access

  • check the location of the file
  • check the permissions for that file / folder
benbramz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
code , error , access


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Code 404! Languedoc Gundogs Your Design and Layout 3 August 30th, 2007 12:04 PM
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 August 7th, 2007 08:00 AM
ASP Multi users Access to Microsoft Access ish Classic ASP 0 April 26th, 2007 04:05 PM
ASp Access database error drappendix Classic ASP 2 January 30th, 2007 04:36 AM
Access a HTML InputBox through the Code-Page bwalker .NET 5 November 10th, 2005 08:58 AM


Search Engine Optimization by vBSEO 3.2.0 RC8