Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 2nd, 2006, 11:39 AM
Registered User
Join Date: May 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old August 3rd, 2006, 07:00 AM
Friend of Wrox
Points: 912, Level: 11
Points: 912, Level: 11 Points: 912, Level: 11 Points: 912, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2005
Location: Dublin, , Ireland.
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts

Try use the following web site for cascading tips

Brendan Bartley
Reply With Quote
  #3 (permalink)  
Old August 7th, 2006, 03:04 AM
Friend of Wrox
Join Date: Jul 2005
Location: Oklahoma City, OK, USA.
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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:28 PM
vba recodeset update (Excel) stepdev VB Components 1 October 20th, 2006 10:17 AM
How apply cascade update/delete in sql server ? method SQL Server 2000 2 May 14th, 2005 01:02 PM
Urgent: Implement Cascade Delete through Code rcmetta BOOK: Professional Crystal Reports for VS.NET 0 June 7th, 2004 01:49 AM
cascade Ibn_Aziz C# 1 February 24th, 2004 11:51 AM

All times are GMT -4. The time now is 06:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.