Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 November 24th, 2004, 06:13 PM
Authorized User
 
Join Date: Apr 2004
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lguzman
Default Refreshing a sub-form from another sub-from

Goo day.

I have a form which have two subforms. In one subform I am selecting items and adding them to a table. On a second sub-form I wan't to display the items selected on the first sub-form. The first part is working well, however I am unable to get the 2nd sub-form to display the items (refresh). If I go out of the form and come back in the items are there. However if I add new ones they are not displayed. I though it would be as easy as having some code like secondsubform.refresh . But it is not working.

Please help...



[LGuzman]
__________________
[LGuzman]
 
Old November 29th, 2004, 05:07 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

On the first subform's AfterUpdate event, put this:

Forms.My2ndSuformName.Form.Requery


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing VB .NET web form sniuh ASP.NET 1.0 and 1.1 Basics 1 November 27th, 2006 02:45 PM
Refreshing a Datagrid hexOffender VB.NET 2002/2003 Basics 0 September 22nd, 2006 10:31 AM
Refreshing the records displayed in a form DrewMills Access VBA 2 March 3rd, 2005 07:51 PM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM
Form not refreshing after form validation Mimi Javascript How-To 0 August 25th, 2003 03:20 AM





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