I have an .asp page that had the following query:
and that worked fine. However, I wanted to also link to a different database on a different server. So I used Linked Table Manager in Access to create a link, generated the query, and it works fine in Access. The new query is:
Unfortunately, I receive this error when loading the updated page:
Through trial and error, I have determined that any time I try to get to tblRequests in the query, it breaks. But, again, the database query itself works fine.
Does anyone know why the .asp page can't handle the link? Is there a different way I should be doing this?
Thanks in advance!
Code:
SQL="SELECT * FROM WorkOrder WHERE WorkOrder_Number='" &strWorkOrder_Number&"'"
and that worked fine. However, I wanted to also link to a different database on a different server. So I used Linked Table Manager in Access to create a link, generated the query, and it works fine in Access. The new query is:
Code:
SQL="SELECT WorkOrder.*, tblRequests.REQUEST_DT, tblRequests.DELIVERY_DT, tblRequests.DOCK_DT, tblRequests.REQUEST_STATUS, tblRequests_1.REQUEST_DT, tblRequests_1.DELIVERY_DT, tblRequests_1.DOCK_DT, tblRequests_1.REQUEST_STATUS FROM (WorkOrder LEFT JOIN tblRequests ON WorkOrder.ID1 = tblRequests.ID) LEFT JOIN tblRequests AS tblRequests_1 ON WorkOrder.ID2 = tblRequests_1.ID WHERE WorkOrder.WorkOrder_Number='" &strWorkOrder_Number&"'"
Unfortunately, I receive this error when loading the updated page:
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '\\server\Backend.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
DisplayWO.asp, line 30
Through trial and error, I have determined that any time I try to get to tblRequests in the query, it breaks. But, again, the database query itself works fine.
Does anyone know why the .asp page can't handle the link? Is there a different way I should be doing this?
Thanks in advance!