subform update change main
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

resolvedResolved · Low Priority · Version 2007

replyReply Mon 13 Dec 2010, 23:31Delegate Jamie said...

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

For upcoming training course dates see: Pricing & availability

replyReply Wed 15 Dec 2010, 15:49Trainer Anthony said...

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.

 

Please browse our web site to find out more about
access class microsoft training and other Microsoft training courses.

Access tip:

Add current time to a field

Press CTRL+SHIFT+ SEMICOLON

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard