Results 1 to 5 of 5

Thread: A problem with Linked Tables???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263

    Exclamation A problem with Linked Tables???

    Ok. I have a database that I wish to display on the Web via ASP and the table is linked to another table in another Access database. I keep getting an invalid path error when I try to connect. What could be the problem?
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    post some code and what do you mean by table, the db table?

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    If it works fine thru Access, my first guess would be a file security issue.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263
    Ok. I have a table called Resources located in an Access database called CBPTP.mdb. This table is linked to another table in another Access database called CBPTD1.mdb. When I try to run it, it says that CBPTD1.mdb cannot be found. Here is my code for the connection:

    Code:
    <%
      Dim objConn
      Set objConn = Server.CreateObject("ADODB.Connection")
      objConn.Open "Provider=Microsoft.Jet.OLEDB.4 & _
    			   "Data Source= C:\Inetpub\wwwroot\Lorna\CBPTP.mdb"
    %>
    That is my connection code which is a SSI.
    Then here is the page I wish to display it in:
    Code:
    <!--#INCLUDE FILE="Connection.asp"-->
    <HTML>
    <HEAD>
    <TITLE>Programmer List</TITLE>
    </HEAD>
    <BODY>
    <%
      Dim rsProg, strSQL
      Set rsProg = Server.CreateObject("ADODB.Recordset")
      strSQL = "SELECT * FROM Resources ORDER BY EmployeeID;"
      rsProg.Open strSQL, objConn
    %>
    <TABLE BORDER=1>
      <TR>
    	<TH>Name</TH><TH>Beeper Number</TH><TH>Employee ID</TH><TH>Extension</TH><TH>Email Name</TH>
      </TR>
    <%
      Do While Not rsProg.EOF
    	Response.Write _
    	"<TR>" & _
    	"	<TD><A HREF=resourcemaint.asp?EmpID=" & rsProg("EmployeeID") & ">" & rsProg("LastName") & ", " & rsProg("FirstName") & "</TD>" & _
    	" <TD>" & rsProg("BeeperNumber") & "</TD>" & _
    	" <TD>" & rsProg("EmployeeID") & "</TD>" & _
    	" <TD>" & rsProg("Extension") & "</TD>" & _
    	" <TD>" & rsProg("EmailName") & "</TD></TR>"
      Loop
    %>
    </TABLE>
    </BODY>
    </HTML>
    See what you can come up with man. I have no idea why this won't work.
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263
    I checked the security. Everything is fine. It is connecting to the CBPTP.mdb database but when it goes to the linked table it comes up with that error.
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

Posting Permissions

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



Click Here to Expand Forum to Full Width