473,233 Members | 1,489 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,233 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 2414
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.