The different ways of "ASP" link Access2007 and Access2003

Source: Internet
Author: User

Microsoft this guy likes to change the program, programming language, file structure to change.

If your database is Access2007 can be directly as, through the Access2007 in the Save As, the database directly into the ACCESS2003 database *.mdb


But at the same time notice that your ASP links to the parts of access, you must from

ASP link Access2007:

<%db= "Database.mdb" Set conn = Server.CreateObject ("ADODB". Connection ") Conn. Open "Driver={microsoft Access driver (*.mdb)};p wd=admin;dbq=" & Server.MapPath (db)%>
Change to ASP link Access2003:

<%set Rs=server. CreateObject ("Adodb.recordset") Set Conn=server.createobject ("Adodb.connection") Conn.Open "DBQ=" &server. MapPath ("Database.mdb") & ";p assword=admin;driver={microsoft Access DRIVER (*.mdb)}"%>
Where Database.mdb is the database to link to. Password is the password for the Access database.

The different ways of "ASP" link Access2007 and Access2003

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.