Solved

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

Posted on 2002-05-24
5
214 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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.

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now