If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > error (EOF or BOF)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 21:08
fisya fisya is offline
Registered User
 
Join Date: Mar 2004
Posts: 53
error (EOF or BOF)

this is a new problem.
below are the coding:



<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/sambung.asp" -->

<%
Dim getid
Dim idaduan

Dim sq
Dim rs
Dim rs1
Dim db
Dim nama
getid=session("id")
set db=Server.CreateObject("ADODB.Connection")
db.Open"sambung"

sq="SELECT namastaffuitm FROM staffIT WHERE nostaffuitm='" & getid &"'"
set rs=db.execute(sq)
nama=rs("namastaffuitm")

'sq2="SELECT id_aduan, status_id,tarikhmasa,arahan FROM tb_aduan WHERE arahan='" &nama& "'"
'set rs1=db.execute(sq2)
'idaduan=rs1("id_aduan")



Dim Recordset1
Dim Recordset1_numRows


Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_sambung_STRING
Recordset1.Source = "SELECT id_aduan, tarikhmasa, arahan, status_id FROM tb_aduan WHERE arahan='" & nama & "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0


%>


the problem is it cannot view the data.the system cannot find any data that match the expression below eventhough there data is available in the database

i always get BOF or EOF error.can somebody help me!!!!!!!!!!!!!!!!!!1
Reply With Quote
  #2 (permalink)  
Old 05-14-04, 01:54
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
If you do a "Response.Write nama" after:

nama=rs("namastaffuitm")

Is a value displayed?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On