|
|
 |
| Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 18th, 2003, 01:09 AM
|
|
Authorized User
|
|
Join Date: Sep 2003
Location: islamabad, pk, Pakistan.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problem In Recordset
Hello Everybody. i have problem in the searching a particular record in the database. If records exists well and good other wise it given me the error "Either EOF Or BOF Accurd and the record has been deleted.". Secondly please assist me how can I assert paging in the code given below.Any help will be highly appreciated.
Bye
-------------------------------------------------------
set con=Server.CreateObject("ADODB.Connection")
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from book_issue where accession_no='"&ac&"'"
con.open str
rs.open sql,con,2,2
'if rs.eof<>"true" then
'''''''''How to know if the search is empty''''''''
accessionno=rs("accession_no").value
title1=rs("title").value
rs.close
Zaeem Sherazi
__________________
Zaeem Sherazi
|

October 21st, 2003, 10:14 PM
|
|
Authorized User
|
|
Join Date: Sep 2003
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
don't know if i simplified ur problem, but u should use if-then-else statements.
<%open rs
if rs.eof=false then
*yourcode*
<% else %>
*error message*
<%End if
close rs%>
there are many examples on the net.
a good example of paging: http://www.asp101.com/samples/db_paging.asp
|

October 22nd, 2003, 02:34 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 467
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
<%
if rs.RecordCount=0 then
*error message*
else
*yourcode*
end if
%>
surendran
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |