473,424 Members | 1,735 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,424 software developers and data experts.

move next

Is there a command in VB with which to move to the next row in the
table of Access database ?
For example my table TblCrates consists of :

CrateId City

1. Berlin

I need a command in VB with which to go to the next row,
in the case the CrateId will be 2

Can somebody help me ?

Dec 14 '05 #1
2 3406
There's not a nice way to do this in a table.

Forms are designed to be the interface.
Create a form (datasheet view if you wish) bound to your table.
You can now do stuff such as:
RunCommand acCmdRecordsGoToNext

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"solar" <sp*******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Is there a command in VB with which to move to the next row in the
table of Access database ?
For example my table TblCrates consists of :

CrateId City

1. Berlin

I need a command in VB with which to go to the next row,
in the case the CrateId will be 2

Can somebody help me ?

Dec 14 '05 #2
If you are using VBA code to processing a Recordset in DAO, there is a
MoveNext method for the Recordset object that will do exactly what you want.
As Allen explained, you can't do that in datasheet view, but you can, in a
Form, using either the approach he explained or by using the Form's
RecordsetClone and Bookmarks (The way Allen described is easier, but it is
sometimes useful to know there is an alternative.)

Larry Linson
Microsoft Access MVP

"solar" <sp*******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Is there a command in VB with which to move to the next row in the
table of Access database ?
For example my table TblCrates consists of :

CrateId City

1. Berlin

I need a command in VB with which to go to the next row,
in the case the CrateId will be 2

Can somebody help me ?

Dec 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rick | last post by:
I am moving throught a set of records, my next works great but previous move to the first record. Also what is the best way to check and see if it is the first or last record in the set. ...
2
by: Anand Ganesh | last post by:
Hi All, How to Implement Move Next, Move Previous, Last Record and First Record in a DataGrid Control ? Is there any standard tool available in the tool box button? Thanks for your time. ...
2
by: ashasprabhu | last post by:
hai, How to move records to next and previous in asp.net as we do in VB6.0
55
by: indhu | last post by:
HI all one sequence has many panels. when i select combo it displays all the fields but panel has more rows. i want to view that also. how to do that? move next and previous commds are there...
3
by: dianaj86 | last post by:
I have multiple dropdownlists each one filled with values from a specific column in the table. Also I have multiple textboxes corresponding to dropdownlists. For example, when I select an item from...
10
by: fran7 | last post by:
Hi, Anyone know the simplest solution to add a next record link. I have this <a href="page.asp?author=<%=rsCard("author")%>">link</a> I am on a page with one record and want a link to go...
0
by: nithyamca | last post by:
Hi.. I want to use enter key to move the next column in datagrid view in vb.net and when ever press the enter key in last cell in grid it create the next row . actually i am hide some cells in...
2
by: edcha | last post by:
I have the Next XML var xml = new XElement( "clients", new XElement("client", new XAttribute("id",1), new XElement( "name", "Luis"), new XElement( "country", "Portugal") ), new...
3
by: steve proctor | last post by:
hi at the moment i can get this to load the contents of the first row,first column the number "1" into all the fields in the table "tblTransfer2" so all the fields have the number "1" in it where the...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.