StarScream
Technical User
Help,
For some reason I can't get this to work. I've written several completed DBs and am working on a new project. Had it all working fine until I tried to write an ASP page using this query. Any thoughts on what I'm doing wrong? Thanks.
PS - Here is the ASP that the query is in. It comes back with an error in the bolded line below.
PJP
For some reason I can't get this to work. I've written several completed DBs and am working on a new project. Had it all working fine until I tried to write an ASP page using this query. Any thoughts on what I'm doing wrong? Thanks.
Code:
SELECT PersonnelName FROM PersonnelTable INNERJOIN SystemTable ON PersonnelID=SysPersID WHERE SystemName='Microsoft'
PS - Here is the ASP that the query is in. It comes back with an error in the bolded line below.
Code:
<%
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("Database.mdb")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rstTable = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT PersonnelName FROM PersonnelTable INNERJOIN SystemTable ON PersonnelID=SysPersID WHERE SystemName='Microsoft'"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
Code:
rstTable.Open cmdTemp, , 1, 3
Code:
Response.write "Person=" & Server.URLEncode(rstTable("PersonnelName"))
rstTable.Close
Set rstTable = Nothing
DataConn.Close
Set DataConn = Nothing
%>
PJP