Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now