asp_web_howto thread: Scrolling through a database in access
Message #1 by "Jonathan Marshall" <jdmarsh2g@h...> on Wed, 12 Dec 2001 16:03:25 +0000
|
|
<html><div style='background-color:'><DIV>What is the best way to scroll through
records dispaying the information of each record in a form with hyperlinks or buttons<BR></DIV></div><br
clear=all><hr>Get your FREE download of MSN Explorer at <a
href='http://go.msn.com/bql/hmtag_etl_EN.asp'>http://explorer.msn.com</a>.<br></html>
Message #2 by Nick Charlesworth <nick@f...> on Wed, 12 Dec 2001 16:13:08 -0000
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C18327.E6C76538
Content-Type: text/plain;
charset="iso-8859-1"
Response.Write "<table>"
While Not rs.EOF
Response.Write "<tr><td>" & rs("strPrice") & "</td><td><a
href=""newpage.asp?ID=" & rs("intID") & """>" & rs("strItemName") &
"</a></td></tr>"
rs.MoveNext
Wend
Response.Write "</table>"
-----Original Message-----
From: Jonathan Marshall [mailto:jdmarsh2g@h...]
Sent: 12 December 2001 16:03
To: ASP Web HowTo
Subject: [asp_web_howto] Scrolling through a database in access
What is the best way to scroll through records dispaying the information of
each record in a form with hyperlinks or buttons
_____
Get your FREE download of MSN Explorer at http://explorer.msn.com
<http://go.msn.com/bql/hmtag_etl_EN.asp> .
$subst('Email.Unsub').
Message #3 by "Jonathan Marshall" <jdmarsh2g@h...> on Wed, 12 Dec 2001 19:07:16 +0000
|
|
<html><div style='background-color:'><DIV>
<P>Oh okay. Im not trying to get to another page what i meant was if you have a form and connect to the database. Fill the
form with values from the database. Then from there going on to the next record and so forth being able to scroll back and forth
through recordsets using a button <input type=button value=next_record name=next_record> not sure if i
explained that correctly<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Nick Charlesworth <NICK@F...>
<DIV></DIV>>Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>Subject: [asp_web_howto] RE: Scrolling through a database in access
<DIV></DIV>>Date: Wed, 12 Dec 2001 16:13:08 -0000
<DIV></DIV>>
<DIV></DIV>>Response.Write "
<TABLE>"
<DIV></DIV>>While Not rs.EOF
<DIV></DIV>> Response.Write "
<TBODY>
<TR>
<TD>" & rs("strPrice") & "</TD>
<TD><A DIV <>>href=""newpage.asp?ID=" & rs("intID") & """>" & rs("strItemName")
&
<DIV></DIV>>"</A></TD></TR>"
<DIV></DIV>> rs.MoveNext
<DIV></DIV>>Wend
<DIV></DIV>>Response.Write "</TBODY></TABLE>"
<DIV></DIV>>
<DIV></DIV>>-----Original Message-----
<DIV></DIV>>From: Jonathan Marshall [mailto:jdmarsh2g@h...]
<DIV></DIV>>Sent: 12 December 2001 16:03
<DIV></DIV>>To: ASP Web HowTo
<DIV></DIV>>Subject: [asp_web_howto] Scrolling through a database in access
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>What is the best way to scroll through records dispaying the information of
<DIV></DIV>>each record in a form with hyperlinks or buttons
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>> _____
<DIV></DIV>>
<DIV></DIV>>Get your FREE download of MSN Explorer at http://explorer.msn.com
<DIV></DIV>> .
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>$subst('Email.Unsub').
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a
href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html>
Message #4 by "Ken Schaefer" <ken@a...> on Thu, 13 Dec 2001 12:13:32 +1100
|
|
Have a hidden HTML input field that contains the ID of the next and previous
records. Use that to extract the relevant information for the next/previous
record
This follows the same princple as "paging", where "next/previous page" is
involved. There are plenty of example on the web...
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jonathan Marshall" <jdmarsh2g@h...>
Subject: [asp_web_howto] RE: Scrolling through a database in access
: Oh okay. Im not trying to get to another page what i meant was if you have
a form and connect to the database. Fill the form with values from the
database. Then from there going on to the next record and so forth being
able to scroll back and forth through recordsets using a button <input
type=button value=next_record name=next_record> not sure if i explained
that correctly
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #5 by "Jonathan Marshall" <jdmarsh2g@h...> on Thu, 13 Dec 2001 01:24:44 +0000
|
|
<html><div style='background-color:'><DIV>
<P>What are some good asp sites where i can learn these types of procedures. For paging through records etc....
<BR><BR>thanks again Ken <BR><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Ken Schaefer" <KEN@A...>
<DIV></DIV>>Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>Subject: [asp_web_howto] RE: Scrolling through a database in access
<DIV></DIV>>Date: Thu, 13 Dec 2001 12:13:32 +1100
<DIV></DIV>>
<DIV></DIV>>Have a hidden HTML input field that contains the ID of the next and previous
<DIV></DIV>>records. Use that to extract the relevant information for the next/previous
<DIV></DIV>>record
<DIV></DIV>>
<DIV></DIV>>This follows the same princple as "paging", where "next/previous page" is
<DIV></DIV>>involved. There are plenty of example on the web...
<DIV></DIV>>
<DIV></DIV>>Cheers
<DIV></DIV>>Ken
<DIV></DIV>>
<DIV></DIV>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<DIV></DIV>>From: "Jonathan Marshall" <JDMARSH2G@H...>
<DIV></DIV>>Subject: [asp_web_howto] RE: Scrolling through a database in access
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>: Oh okay. Im not trying to get to another page what i meant was if you have
<DIV></DIV>>a form and connect to the database. Fill the form with values from the
<DIV></DIV>>database. Then from there going on to the next record and so forth being
<DIV></DIV>>able to scroll back and forth through recordsets using a button <INPUT DIV
<>>type=button value=next_record name=next_record> not sure if i explained
<DIV></DIV>>that correctly
<DIV></DIV>>:
<DIV></DIV>>
<DIV></DIV>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Join the world?s largest e-mail service with MSN Hotmail. <a
href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html>
Message #6 by "Ken Schaefer" <ken@a...> on Thu, 13 Dec 2001 14:23:01 +1100
|
|
If you want the fastest way that I've been able to find using Access:
www.adopenstatic.com/experiments/recordsetpaging.asp - use the methodology
that uses an adOpenForwardOnly cursor & .GetRows(), but without the stored
procedure (you will need to use an inline SQL statement). This is probably
not an approach for beginners though, as you will need to code some of the
functionality that ADO provides intrinsically (though at a performance
penalty).
The "generic", or "standard" way to do paging can be found in many places:
http://www.google.com/search?q=paging+a+recordset+with+ASP
Almost all the links on the first page of results will tell you what you
need
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jonathan Marshall" <jdmarsh2g@h...>
Subject: [asp_web_howto] RE: Scrolling through a database in access
: What are some good asp sites where i can learn these types of procedures.
For paging through records etc....
:
: thanks again Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #7 by "Jonathan Marshall" <jdmarsh2g@h...> on Thu, 13 Dec 2001 03:59:36 +0000
|
|
<html><div style='background-color:'><DIV>
<P>thanks a lot ken much appreciated and tons to learn<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Ken Schaefer" <KEN@A...>
<DIV></DIV>>Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>>Subject: [asp_web_howto] RE: Scrolling through a database in access
<DIV></DIV>>Date: Thu, 13 Dec 2001 14:23:01 +1100
<DIV></DIV>>
<DIV></DIV>>If you want the fastest way that I've been able to find using Access:
<DIV></DIV>>www.adopenstatic.com/experiments/recordsetpaging.asp - use the methodology
<DIV></DIV>>that uses an adOpenForwardOnly cursor & .GetRows(), but without the stored
<DIV></DIV>>procedure (you will need to use an inline SQL statement). This is probably
<DIV></DIV>>not an approach for beginners though, as you will need to code some of the
<DIV></DIV>>functionality that ADO provides intrinsically (though at a performance
<DIV></DIV>>penalty).
<DIV></DIV>>
<DIV></DIV>>The "generic", or "standard" way to do paging can be found in many places:
<DIV></DIV>>http://www.google.com/search?q=paging+a+recordset+with+ASP
<DIV></DIV>>Almost all the links on the first page of results will tell you what you
<DIV></DIV>>need
<DIV></DIV>>
<DIV></DIV>>Cheers
<DIV></DIV>>Ken
<DIV></DIV>>
<DIV></DIV>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<DIV></DIV>>From: "Jonathan Marshall" <JDMARSH2G@H...>
<DIV></DIV>>Subject: [asp_web_howto] RE: Scrolling through a database in access
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>: What are some good asp sites where i can learn these types of procedures.
<DIV></DIV>>For paging through records etc....
<DIV></DIV>>:
<DIV></DIV>>: thanks again Ken
<DIV></DIV>>
<DIV></DIV>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a
href='http://go.msn.com/bql/hmtag2_etl_EN.asp'>Click Here</a><br></html>
|