Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
subform update change main

Forum home » Delegate support and help forum » Microsoft Access Training and help » Sub-form Update on Change to Main Form

Sub-form Update on Change to Main Form

ResolvedVersion 2007

Jamie has attended:
Access Intermediate course
Access Advanced course

Sub-form Update on Change to Main Form

Hi,

I have created a sub-form and a form, based on 2 tables:

tblCompanies
tblAccount Codes

All is working fine, except for one particular situation. The Primary Key for tblCompanies is a 3-letter code which the user can assign. If the user changes the code in the main form, the records displayed in the sub-form disappear. If you then advance to the next record on the main form and then return to the original record, the updated code is displayed with the appropriate data in the sub-form.

It seems that the cascade update is working fine, it just doesn't update until the record is saved. Is there a way to force the update immediately so that the 3-letter code is changed, but the sub-form data doesn't disappear?

Thanks,

Jamie

RE: Sub-form Update on Change to Main Form

Hi Jamie, thanks for your query. You've spotted an irritating drawback about forms! Essentially, you need to get that sub-form to refresh, which is a bit of a lengthy process to post here but this link should explain the nuts and bolts:

http://www.techonthenet.com/access/subforms/refresh.php

Hope this helps,

Anthony

Tue 21 Dec 2010: Automatically marked as resolved.

Access tip:

Action queries

Unlike select queries you cannot use action queries as a data source for the use with forms or reports,as they do not return a dataset that can be read.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.