Solved

Arrow down from One line to the next on continuous form

Posted on 2014-01-22
2
383 Views
Last Modified: 2014-01-23
I have a continuous form in my application that is set up to enter repetative data.

There are five fields across the screen with "Account' being the first.

I have it set up to automatically carry all but the account information from the prior line to each new line that is entered.

The user has requested to be able to go from the account field on one line directly to the account on the next line by pressing the arrow down key.  I know I have done this in the past for other users but I don't remember how.

I know there is a property on the form that must be set but can't remember the details.

How do I provide the users with this ability?
0
Comment
Question by:mlcktmguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
IrogSinta earned 250 total points
ID: 39801804
Add the following code to a module:
Function KeyUpDown(ByRef vKeycode As Variant) As Boolean
    On Error Resume Next
    If vKeycode = vbKeyDown Then
        DoCmd.GoToRecord , , acNext
    Else If vKeycode = vbKeyUp Then
        DoCmd.GoToRecord , , acPrevious
    End If
End Function

Open in new window

Then add OnKeyUp and OnKeyDown events to each of the fields in your continuous form and put this code in their procedures:
Call KeyUpDown(KeyCode)

Ron
0
 
LVL 1

Author Closing Comment

by:mlcktmguy
ID: 39803312
Excellent
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question