Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS Access
 how can i use this ASP code to connext to
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sean2007
Starting Member

31 Posts

Posted - 09 September 2007 :  21:42:20  Show Profile  Visit sean2007's Homepage
haloo
i find in my hosting the next code

How do I connect to my MS Access database? 
Make sure your database is in the "db" directory in your file space.
Here is a sample ASP code to connect to a MS Access database.

Dim Conn 
Set Conn = Server.CreateObject("ADODB.Connection") 
strConnection = "DRIVER=Microsoft Access Driver(*.mdb);DBQ=" & Server.MapPath("/USERNAME/db/yourdatabase.mdb")
oConn.Open(strConnection) 
.... 
... 
oConn.Close



so please how i can use this mode to connect to my database

phy1729
Average Member

USA
589 Posts

Posted - 10 September 2007 :  19:44:27  Show Profile
remove the ' on line 55 of config.asp
strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/USERNAME/db/snitz_forums_2000.mdb") '## MS Access 97 on Brinkster
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07