Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Datareader move top again

Posted on 2004-10-01
3
Medium Priority
?
296 Views
Last Modified: 2012-06-27
How to move the row pointer to top again from a datareader ?

For example :

Do While dr.Read()
     MsgBox(dr(1))
Loop

'move to top again

Do While dr.Read()
     MsgBox(dr(2))
Loop

Thanks
0
Comment
Question by:vbhaha
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 500 total points
ID: 12205858
Datareader is forward only. You can not go back to the begining. Use DataSet.
-BAan
0
 

Author Comment

by:vbhaha
ID: 12205912
I see, thanks.
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12205927
very good... but why "C" ???
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question