Results 1 to 2 of 2

Thread: help

  1. #1 Guest

    Default help

    can someone please e-mail and help me tell the asp document where to find my database

  2. #2
    Join Date
    Dec 1969

    Default RE: help

    if the asp form is in a subdirectory of the root this would connect to the database in the subdirectory cgi-bin of the root directory<BR><BR>Set conn = Server.CreateObject("ADODB.Connection")<BR>connStr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("../cgi-bin/database.mdb")<BR>Conn.Open connStr<BR><BR>If the asp form is in the root directory then just take off 1 "."<BR>./cgi-bin/database.mdb<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts