Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
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 2nd, 2006, 10:39 AM
Registered User
Join Date: May 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default using VBA to implement cascade update~~~HELP

I have 2 tables, tblB and tblC. tblB has two fields: B_ID(number),B_treatments(text).tblC has two fields: C_ID(number),C_treatments(text).

I want to implement the cascade update between B_treatment and C_treatment when B_ID=C_ID. But I cannot do it by adding a relationship between them. Is there other way to do it? e.g. through VBA.

Thank you very much

Old August 3rd, 2006, 06:00 AM
Friend of Wrox
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts

Try use the following web site for cascading tips

Brendan Bartley
Old August 7th, 2006, 02:04 AM
Friend of Wrox
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts

Cascading updates will not do what you are trying to do.

To do a cascade update between B_treatment and C_treatment, B_treatment must be the primary key that is joined to the foreign key C_treatment.

Otherwise you will need to create an update query.

"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i add constraint on update cascade without mahen_pali SQL Server 2005 1 May 3rd, 2008 03:28 PM
vba recodeset update (Excel) stepdev VB Components 1 October 20th, 2006 09:17 AM
How apply cascade update/delete in sql server ? method SQL Server 2000 2 May 14th, 2005 12:02 PM
Urgent: Implement Cascade Delete through Code rcmetta BOOK: Professional Crystal Reports for VS.NET 0 June 7th, 2004 12:49 AM
cascade Ibn_Aziz C# 1 February 24th, 2004 11:51 AM

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