code error with Access

This is a discussion on "code error with Access" within the Classic ASP section. This forum, and the thread "code error with Access are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 1st, 2006, 15:21
Junior Member
Join Date: Feb 2006
Age: 30
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Feb 1st, 2006, 17:47
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: code error with Access

  • check the location of the file
  • check the permissions for that file / folder
Reply With Quote
Reply

Tags
code, error, access

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 Starting Out 3 Aug 30th, 2007 16:04
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
ASP Multi users Access to Microsoft Access ish Classic ASP 0 Apr 26th, 2007 20:05
ASp Access database error drappendix Classic ASP 2 Jan 30th, 2007 08:36
Access a HTML InputBox through the Code-Page bwalker ASP.NET Forum 5 Nov 10th, 2005 12:58


All times are GMT. The time now is 20:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43