Here's the whole page
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>System Status</title>
<link rel="stylesheet" type="text/css" href="css/status.css">
<%Language = VBScript%>
</head>
<body>
<h1>System Status</h1>
<%
'Define variables
Dim WorkDirectory
Dim I
Dim J
Dim DatabaseName
Dim SDate
Dim sTime
system = request.form("system"

status = request.form("status"

note = request.form("note"

sDate = date()
sTime = time()
%>
<%
FUNCTION theFIX(theVariable)
theFIX=Replace(theVariable,"'", "~"

End Function
%>
<%
'Determine the top-level directory for this URL
WorkDirectory = Request.ServerVariables("Path_Translated"

J = 0
For I = len(WorkDirectory) to 1 step -1
If mid(WorkDirectory, I, 1) = "\" Then
J = J + 1
If J = 2 Then
WorkDirectory = left(WorkDirectory, I)
Exit For
End If
End If
Next
'Retrieve the name of the database from the initialisation file
Set Fso = CreateObject("Scripting.FileSystemObject"

Set Inifile = Fso.opentextfile(WorkDirectory & "storephotodsn.ini", 1)
DatabaseName = Inifile.ReadLine
Set Inifile = Nothing
Set Fso = Nothing
'Open the control and administration database
Set Conn = Server.CreateObject("ADODB.Connection"

Conn.Open DatabaseName
'capture errors
On Error Resume Next
set rs = Server.CreateObject("ADODB.recordset"

sql1="Select System from tblSystemStatus Order by system asc"
rs.Open sql1, conn
%>
<form method="POST" action="systemmodNew.asp">
<table>
<td width = 150>Select System</td>
<td>
<Select Name = "System" size="1">
<%
If not(rs.EOF AND rs.BOF) Then
rs.MoveFirst
Do until rs.EOF
Response.Write "<option value='" & rs("System"

& "'> " & rs("System"

& " </option>"
rs.MoveNext
Loop
End If
rs.close
%>
</select>
<td><%response.write("Date: " & sdate &" & Time: "& sTime)%>
</td>
</td>
<tr>
<tr>
<%
set rs = Server.CreateObject("ADODB.recordset"

sql2="Select * from tblStatus"
rs.Open sql2, conn
%>
<td width = 150>Select Status</td>
<td>
<Select Name = "Status" size="1">
<%
If not(rs.EOF AND rs.BOF) Then
rs.MoveFirst
Do until rs.EOF
Response.Write "<option value=" & rs("StatusImage"

& ">" & rs("Status"

& "</option>"
rs.MoveNext
Loop
End If
rs.close
%>
</select>
</td>
<tr>
<tr>
<td width = 150>Status Note</td>
<td>
<input type="text" name="Note" size="50">
</td>
<tr>
<tr>
<td>
<input type="submit" value="Submit" name="B1">
</td>
<tr>
</table>
<%
set rs = Server.CreateObject("ADODB.recordset"

sql3="UPDATE tblSystemStatus SET Status= '"& status &"', StatusText='"& theFix(note) &"'" & _
", StatusDate=#" & sDate & "#, StatusTime=#" & sTime & "# WHERE System = '" & system & "'"
rs.Open sql3, conn
'next
rs.close
conn.close
%>
</body>