Print Page | Close Window

Error connect to MsAccess in server

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4186
Printed Date: 29 March 2026 at 7:36pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error connect to MsAccess in server
Posted By: kennethwwc
Subject: Error connect to MsAccess in server
Date Posted: 10 July 2003 at 8:05pm

Hi, I faced a problem that is cannot access to Microsoft ACCESS database. I created DSN with the name = Shermont and actual name of  .MDB file is Shermont.mdb in my hosting and followed the instruction which is create a new folder named “database” and put same level with the HTML folder and paste my Ms ACCESS database into the folder, but still not work.

This is the code I used to access to the database:

            Dim con, rs, str

            set con=server.CreateObject("ADODB.CONNECTION")

            con.Open "Shermont"

            set rs=server.CreateObject("ADODB.RECORDSET")

            rs.ActiveConnection=con

            str="SQL statement"

            rs.open str

            …….

            rs.close

            con.close

 

And this is the error message when I process:

 

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

 

[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

 

can any one help to solve this problem ......

thanks a lot....



-------------
kenneth^^



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net