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 October 6th, 2004, 10:29 AM
Authorized User
 
Join Date: Sep 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Paulsh Send a message via Yahoo to Paulsh
Default Updating data in a subform when tables change.

Please forgive me if this seems like a simple problem.

I have two forms (A and B). B is a subform which is linked to A through a many-to-one relationship (Table A and B respectively). In creating my mini-application I have chosen to used ADO to write data to the underlying tables. Hence, when data on Form A changes i manualy write the data to the table. It is at this point that I now begin to add data to Table B.

When opening the form I am able to see all the data in the subform B which is related to the fields referenced in the mainform A by just going from one record in A to the next.

The problem is when I am creating the new data in table B I want it to be refreshed in subform B immediately and I am not sure how to do this.

Please help

Regards
Paul

__________________
Paul
 
Old October 6th, 2004, 03:49 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

Look up help for the Requery method. For example:

Me.SubFormB.Requery


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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change button caption on continuous subform PeregrinTook Access VBA 2 April 16th, 2007 05:16 PM
Updating Tables Brendan Bartley Access 1 December 20th, 2006 10:42 AM
MS ACCESS UPDATING A SUBFORM FIELD bernieregans SQL Language 1 February 3rd, 2006 04:26 PM
updating main form from subform dartcoach Access 6 April 28th, 2005 08:27 AM
ADO - Updating two tables? BradLee31 Pro VB 6 2 May 19th, 2004 05:39 AM





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