M
Matt
why isn't this working??? I get an 'Expected end of statement' error
on last line
<!-- #include file="adovbs.inc" -->
<%
function SetCheckbox(arg)
if arg then
SetCheckbox="checked"
else
SetCheckbox=""
end if
end function
%>
<%
Dim Conn, RS, SQL
Dim strConnect, strJobArea
strJobArea = Request.Form("SelectJobArea")
strConnect = "Driver={Microsoft Access Driver
(*.mdb)};DBQ=\\CALSJ1\PMAPPS\pmdata.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
SQL = "SELECT J.*, D.JobName " _
& " FROM mstJobs AS J, dtlContacts AS D " _
& " WHERE J.JobNumber = D.JobNumber " _
& " AND J.JobAdministrator= '" & strJobArea & "' " _
& " AND J.ContractStatusClosed = False " _
& " AND J.ContractStatus = True " _
Set RS = conn.Execute( SQL )
%>
on last line
<!-- #include file="adovbs.inc" -->
<%
function SetCheckbox(arg)
if arg then
SetCheckbox="checked"
else
SetCheckbox=""
end if
end function
%>
<%
Dim Conn, RS, SQL
Dim strConnect, strJobArea
strJobArea = Request.Form("SelectJobArea")
strConnect = "Driver={Microsoft Access Driver
(*.mdb)};DBQ=\\CALSJ1\PMAPPS\pmdata.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
SQL = "SELECT J.*, D.JobName " _
& " FROM mstJobs AS J, dtlContacts AS D " _
& " WHERE J.JobNumber = D.JobNumber " _
& " AND J.JobAdministrator= '" & strJobArea & "' " _
& " AND J.ContractStatusClosed = False " _
& " AND J.ContractStatus = True " _
Set RS = conn.Execute( SQL )
%>