Results 1 to 7 of 7

Thread: Access linked table with asp

  1. #1
    Join Date
    Aug 2008
    Posts
    3

    Access linked table with asp

    Hi,

    I have created linked table in Ms Access to the outlook contacts table. But when I try to access the linked I get error message that the table could not be found.

    Code:
    Set rs= Server.CreateObject("ADODB.Recordset")
    	rs.ActiveConnection = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\wwwroot\nhkdata\nh110605.mdb;"	
    	rs.Source = "SELECT * From Contacts"
    	rs.Open()
    Anyone?

  2. #2
    Join Date
    May 2006
    Posts
    407
    If you open the Access database when it is in the location specified in your code you posted with your question, can you open the outlook contacts table? Is the outlook contacts table on the same server, or is it somewhere else on your network?

  3. #3
    Join Date
    Aug 2008
    Posts
    3
    Its on the same server.

    I can open the table in access maually but not with asp.

  4. #4
    Join Date
    May 2006
    Posts
    407
    Can you open any other linked tables with asp? Or is it the outlook table is the only one you can not open. I'm thinking that asp will not support linked tables.

  5. #5
    Join Date
    Aug 2008
    Posts
    3
    Its the only linked table. I dont know if asp support linked tables thats what im trying to find out.

  6. #6
    Join Date
    May 2006
    Posts
    407
    Testing the concept is a very valid form of "finding out." I would suggest linking another table into your database, then try to access that newly linked table using asp in your web app. Let me know if it works or not.

  7. #7
    Join Date
    Aug 2008
    Posts
    1

    Cool Hi

    I think u r not giving proper address just like c:\MyDocuments\Ms-Acess.mdb When proper route u will given the error will never show.

Posting Permissions

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