473,387 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

moving next recordset

hello friends
i am devloping an application using ms-access database. I want to move next on the recordset.Please send me solution with source code. i am in hurry please send as much as possiable.


thanks
sexy shot :)
Jul 15 '06 #1
4 8444
sashi
1,754 Expert 1GB
Hi there,

you are developing rite? am sure you done up with a little bit of coding work.. pls send you currently completed code segment to be validated.. we don't send code out just like that.. in here we help users to learn a better way of programming.. take care.. :)
Jul 15 '06 #2
Ali Rizwan
925 512MB
hello friends
i am devloping an application using ms-access database. I want to move next on the recordset.Please send me solution with source code. i am in hurry please send as much as possiable.


thanks
sexy shot :)


use this code

private sub()

Expand|Select|Wrap|Line Numbers
  1. if data.recordset.eof then
  2. data.recordset.movefirst
  3. else
  4. data.recordser.movenext
  5.  
Aug 17 '07 #3
kinnu
30
For next record

Private Sub Command1_Click()
Data1.Recordset.movenext.MoveNext
End Sub

In the same way for previous record Data1.Recordset.movenext.Moveprevious

For first rec: Data1.Recordset.movenext.Movefirst
For last rec: Data1.Recordset.movenext.Movelast

EOF is end of file and BOF is begin of file.

So you can code in the following way


Private Sub Command1_Click()
If Data1.Recordset.EOF Then
MsgBox "last record"
Else
Data1.Recordset.MoveNext
End If
End Sub
Aug 20 '07 #4
kinnu
30
Sorry the above was not properly sent:

For next record

Private Sub Command1_Click()
Data1.Recordset.movenext
End Sub

In the same way for previous record Data1.Recordset.Moveprevious

For first rec: Data1.Recordset.Movefirst
For last rec: Data1.Recordset.Movelast

EOF is end of file and BOF is begin of file.

So you can code in the following way


Private Sub Command1_Click()
If Data1.Recordset.EOF Then
MsgBox "last record"
Else
Data1.Recordset.MoveNext
End If
End Sub
Aug 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: RT | last post by:
Hello; I'm trying to create a updates pages that I can move either to the previous record or the next record within a recordset without having to return to the repeating list of records after...
4
by: hinrich | last post by:
Hello, I have a completely new system (windows xp prof.), office xp 2002 with sp 3. When I create a new and empty Accesss database, create an empty table and then create a new form using a...
3
by: scottallenmccullough | last post by:
I'm sure there is an easy solution for this problem. On "FORM A" is a combobox with a separate table as its record source. If the data required in the combobox is not one of the available choices...
11
by: scsTiger | last post by:
I am using Access 2000 as the front end and MS SQL 2000 as the backend. I have a one record form that I set using something like: strSQL = "SELECT * FROM dbo_WBACCT WHERE...
1
by: maiami2 | last post by:
Hi Guys, I'm very new to access and I've been trying to get the hang of it over the last few days, but I've become very confused with various aspects of how to code it. Introduction: I am...
1
by: Shaolin | last post by:
Hi guys I;m trying to move all my Listview content into a module because I have to call it several times and it becomes annoying having to type it a number of times. I'm a little stuck though....
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
15
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
1
colinod
by: colinod | last post by:
Hi everyone i am trying to make a page that goes to the next recorset when i click on a button so the page only shows one record at a time, this is for updating so i need to be able to go to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.