Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically have the subform open on the a new record

Status
Not open for further replies.

Aspen77

Technical User
Sep 20, 2012
41
US
I am using Access 2010 and I have a tabbed form. On one tab I have a subform in datasheet view. The user is having to scroll down hundreds of records to add or modify the last entry. Is it possible once the form opens to jump to the last record or a new record so they do not need to scroll down?
 
Aspen77 . . .

[blue]?[/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Aspen77 . . .

So were not fighting a naming problem, is the name of the subform [blue]sfrmDetailsDS[/blue]? If not did you substitute the proper name in:

Code:
[blue]Me.[purple][b]sfrmDetailsDS[/b][/purple].SetFocus[/blue]

Note: the methods used in this thread are methods of [blue]DoCmd[/blue]. The majority (if not all) of the methods [purple]require the object to have focus in order to work[/purple]. This is the reason for the set focus line in [blue]dhookom's[/blue] code. He is setting focus to the subform first!

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top