<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\inetpub\wwwroot\statusreports\db\status.mdb"
dim Office
Office="employee = '"&Request.Form("employee")&"' and "
if (Request.Form("employee")="All") Then
Office=""
end if
Recordset1.Source = "SELECT * FROM JAX WHERE "&Office&" gendate = #"&Request.Form("gendate")&"# ORDERBY boss DESC, employee ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
|