473,395 Members | 2,151 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,395 software developers and data experts.

Arrow down - up causing move between records

Hi,

I have a form which I would like to keep in 'FormView', but which displays
rows each containing records. Generally the data will be added/updated by
moving between fields, but I would also like the down arrow to move down a
record and the up arrow move up a record etc. Darned if I can see how,
despite searching through the help - both Access and Visual basic.

Thanks in advance

Nov 13 '05 #1
2 8175
Hi John

It's obvious that your form is a continuous form which the default behaviour
for the down arrow with this type of form is to move to the next field.

Solution:
In the Form's properties, select the Event tab and change the "Key Preview"
to "Yes". In the Form's "On Key Down" event type the following code

If KeyCode = vbKeyDown Then
DoCmd.GoToRecord , , acNext
End If

You might want to do a similar one for the up arrow too.

Jeff
"John M" <jo**@jmawer.demon.co.uk> wrote in message
news:ci*******************@news.demon.co.uk...
Hi,

I have a form which I would like to keep in 'FormView', but which displays rows each containing records. Generally the data will be added/updated by
moving between fields, but I would also like the down arrow to move down a
record and the up arrow move up a record etc. Darned if I can see how,
despite searching through the help - both Access and Visual basic.

Thanks in advance

Nov 13 '05 #2
When you say FormView but with rows containing records, I assume you mean
Continuous Forms.

In that view, Up/Down works ok - until you input or change a data field.
When that happens you have to use enter or tab to move to the next field.

You could write some code in the KeyUp/KeyDown event to force a move, but
try using a DataSheet view instead.

On Sun, 12 Sep 2004 10:52:25 +0100, John M <jo**@jmawer.demon.co.uk> wrote:
Hi,

I have a form which I would like to keep in 'FormView', but which
displays
rows each containing records. Generally the data will be added/updated
by
moving between fields, but I would also like the down arrow to move down
a
record and the up arrow move up a record etc. Darned if I can see how,
despite searching through the help - both Access and Visual basic.

Thanks in advance


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 13 '05 #3

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

Similar topics

0
by: * | last post by:
I am looking for a way of moving records around in a CMS like if you click an up arrow it moves the record above the record above and changes the sort order. Does anyone know the best way to do...
2
by: Vincent | last post by:
Hi, I have a user control that needs to trap the arrow keys to move items around internally. However, using the arrow keys will move the focus to another control on the form hosting the user...
0
by: Andrus | last post by:
I have combobox column in DataGridView. Up and down error keys should be used to navigate previous and next row in grid. For this I override them in ProcessCmdKey() event. When combobox...
0
by: sathyan8294 | last post by:
i am using dotnet 2003.i want to move records using firstbutton,previous button,next button,last button in vb.net windows application(not web application).
7
by: Starke | last post by:
I have a table that contains an SCC # and then locations, Qty, SKU. As below SCC Lcoation qty Sku 123 adffa 3 321a1 m 123 adfa ...
0
by: cmrhema | last post by:
Hello I am using ASP.net 2.0 with VC# 2005. I have populated a listbox as below and when I click on the value on the list box I display out the related values. All works fine. But I have one...
5
by: trixb | last post by:
Hello all, Here is what I need to do and need help with: I have a table that is feeding a chart in a report in Access. If this table has more than 50 records, the graph gets messy, and this is...
4
by: beary | last post by:
Hi Being tested using FF 3 on WAMP server. I have spent a number of hours trying to figure this out myself. I have a html form using table cells and had a request to enable the arrow keys on a...
4
by: Perissos | last post by:
ooooooooh ok. I have a form with three combo boxes on it. The first one is based on a query which selects the distinct name from the table, the other two I have as a list. I originally tried...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.