Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-05-24
5
Medium Priority
?
222 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

Industry Leaders: 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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

879 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