Quote:
Originally posted by rokslide
can you post the code you are using. then we could see what is causing the error.
|
<form action="borangcuti.asp" method="get" name="form1">
( this command is use in my index file. After login they should go to borangcuti.asp)
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Request.QueryString
End If
( this command is where the action take place )
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "1"
If (Session("loginid") <> "") Then
Recordset2__MMColParam = Session("loginid")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_Maklumatku_STRING
Recordset2.Source = "SELECT * FROM staffIT WHERE nostaffuitm = '" + Replace(Recordset2__MMColParam, "'", "''") + "'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/cuti/borangcuti.asp, line 244
This is line 244 <td width="27%"> <input name="kc" type="text" id="kc" value="<%=(Recordset2.Fields.Item("kelayakancuti") .Value)%>" size="5">
hari</td>
</tr>