Solved

Calling form detail "scooting" after refresh (.ADP)

Posted on 2002-05-24
5
215 Views
Last Modified: 2012-08-14
This is an Access 2000 ADP with SQL Server 2000.

I have a calling form in COntinuous mode.  Multiple rows display after filling the RecordSource property with a SQL string using a one to one relationship between table A and table B.  Upon double clicking a row we open a second form in single mode using a SQL String just using Table B fields.  After closing the second form we return to the Calling form.  Since the calling form has fields from Table A and Table B we need to "update" the data in those controls so it reflects the change just carried out.  To do that, we do a Me.Refresh.  The controls update as expected, but the row that had the focus (from the initial double-click) is now the first row displayed at the top of the form.  So the rows have scrolled up, if you will, apparently as a result of the refresh.

So, is there a way to "update" the controls without causing this scrolling?
0
Comment
Question by:PeterJayNelson
5 Comments
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 7033332
I am not sure how to do this exactly, but you might want to store the record ID to a variable, and then once the refresh is complete, to set focus back on the record in question.

Fritz the Blank
0
 

Author Comment

by:PeterJayNelson
ID: 7038012
The record still maintains the focus, it is still selected, but its on-screen position "shifts" up.  If you can envision the form displaying 20 rows and you double-click on row 10 - in the middle of the screen.  You go to the secondary form, do your thing, close the form, and return to the form with the 20 rows.  Row #10 that we double-clicked on is now the "first" row at the top of the form and it is still selected.  So I can see rows 10 through 20 because rows 1-9 scrolled up, and off, the form.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 7039049
I am sorry, I assumed that resetting focus on the control would make it visible. There has to be some property that indicates what portion of the records appear in the viewable part of the window. If I find it, I will let you know.

Fritz the Blank
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7226643

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7245596
Per recommendation, points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

809 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