Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 29th, 2006, 08:55 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sub Form Query

Hi All
Is there any way after updating a sub form to set the focus back to the main form
Thanks

Brendan Bartley
__________________
Brendan Bartley
 
Old August 29th, 2006, 01:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

In the After Update event of whatever field you updated, use the SetFocus method to return it back to a control on the main form, e.g. Me.Parent.Form.cmdExitButton.SetFocus.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old September 27th, 2006, 09:00 AM
Authorized User
 
Join Date: Jan 2006
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

on the after update event of the field in the sub form

type docmd.gotocontrol (then type the name of a field on the main form)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Query data in form Vince_421 Access 2 February 1st, 2007 10:45 AM
Linking a query to a form hikinfool Access 3 February 24th, 2006 06:09 PM
Query from Form vemaju Access 7 September 15th, 2005 10:43 AM
create query through a form madeira Access 4 September 26th, 2003 06:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.