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
Solved

Access form auto Scroling- annoying

Posted on 2014-04-19
5
297 Views
Last Modified: 2014-04-19
Hello All,
when i enter a row via a form and hit enter, the form jumps up to first row. The form is in DataSheet view type. I dont like it goes up to the top of the row. How cani do it so that it stays where the scroll is  - any after update event?

Thank you
0
Comment
Question by:Rayne
  • 3
  • 2
5 Comments
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40010572
It will not do that except if you have some code that performs a requery of the form.
Double-check that.

/gustav
0
 

Author Comment

by:Rayne
ID: 40010574
yes it does requery,,so is it possible to do the requery and then come back to the same scrolling position?
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 40010591
Yes, read the ID before requerying. Then after the requery:

   With Me.Recordsetclone
   
        .FindFirst "ID = " & ID

        if .NoMatch then
            msgbox "ID value not found"
        Endif
        me.bookmark = .Bookmark

    End With

/gustav
0
 

Author Closing Comment

by:Rayne
ID: 40010605
thanks
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40010712
You are welcome!

/gustav
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

840 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