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

Flexibility in scrolling through continuous forms (no scroll bars)?

Is there a way in Access that I could make it so that the end user could
scroll up and down, or right and left, depending on the arrow keys
depressed? In form view, instead of going left to right through each
record, just scroll down a column, or to the right, or to the left, or
whatever?

Thanks.

Rich Hollenbeck
Nov 13 '05 #1
2 2424
In general, the left/right arrows do work just fine, but the up down don't
work (as you mentioned).

I just as a regulate thing nearly *always* paste the following code into my
continues form, and they function just like a spread sheet.

Also, make sure you set the forms keypreview = yes

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

' key hand

Select Case KeyCode

Case vbKeyEscape
KeyCode = 0
DoCmd.Close

Case vbKeyUp
KeyCode = 0
On Error Resume Next
DoCmd.GoToRecord acActiveDataObject, , acPrevious

Case vbKeyDown
KeyCode = 0
On Error Resume Next
DoCmd.GoToRecord acActiveDataObject, , acNext

Case vbKeyReturn
If IsNull(Me.ID) = False Then
KeyCode = 0
Call EditMain
End If

End Select

End Sub

You of course can remove the Esc key, and the Enter key code I have
above....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 13 '05 #2
One option, Tools|Options|Keyboard tab. Set "Move after Enter" to Next
Record. This will cause you to go to the next record when Enter is pressed.
Page Up/Page Down will move you a page of records at a time. Another option
for moving one record at a time when up/down arror are pressed is to set Key
Preview to On for the form and in the form's KeyDown event.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyDown Then
DoCmd.GoToRecord , , acNext
End If
If KeyCode = vbKeyUp Then
DoCmd.GoToRecord , , acPrevious
End If
End Sub
--
Wayne Morgan
MS Access MVP
"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:a1****************@nwrddc01.gnilink.net...
Is there a way in Access that I could make it so that the end user could
scroll up and down, or right and left, depending on the arrow keys
depressed? In form view, instead of going left to right through each
record, just scroll down a column, or to the right, or to the left, or
whatever?

Thanks.

Rich Hollenbeck

Nov 13 '05 #3

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

Similar topics

2
by: PhilC | last post by:
Hi Folks, I'm trying to click on a canvas to draw a line. The canvas has scroll bars. All is well until I move the scrollbars. This naturally because the relationship between my screen click and...
4
by: Darren | last post by:
Hi Everyone, I know you can change the color of the scroll bars using javascript or css. But pretend you have the following frame: <frame name="body" scrolling="yes" noresize src="start.htm">...
1
by: Richard Hollenbeck | last post by:
The only reason I made the continuous forms form into a subform is because I like the scrolling behavior better. For example, I don't like how the vertical scrollbar spans the height of the entire...
1
by: Dino M. Buljubasic | last post by:
I have two controls, a panel holding check boxes and a treeview beside the panel. I use buttons to scroll both of thes up and down at the same time but I'd like to make scroll bars on the...
2
by: Amrit | last post by:
Hi Can anyone help me? I would really appreciate I am trying to scroll Groupboxes inside the panel when i hold panel's scroll bar and drag up and down. Such as Internet explorer where you can hold...
7
by: Sharon | last post by:
I’m using the Panel control that contains a PictureBox control (for implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp). The Panel is set to AutoScroll = true. I wish to...
1
by: UJ | last post by:
I've got a div with scrolling enabled. It's wider than the screen so the scroll bars are off the screen and somebody have to scroll the page over. Is there any way to put scroll bars on the left...
1
by: David_from_Chicago | last post by:
I am developing an application in Access 2000 (A2K) which has multiple forms and subforms. Until now, all subforms displayed scroll bars properly (according to the subform's property setting). ...
5
by: kenethlevine | last post by:
Hello I am fairly new to Access and am having a problem for which I am trying everything without success. It is access 2003. I have a main form. When the user presses a button a modal popup...
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:
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.