Update query

  • Thread starter Thread starter Radhika
  • Start date Start date
R

Radhika

How can I update a field in a table on the one side of a one-to-many
relationship?
It does not seem to work using an update query. Is there a way to make it
work in an update query? If not, is there any other way in which i can do
this?

I cannot add an expression to the after update event of the field on a form
as the field needs to be updated based on values in calculated fields.

Thank you
Radhika
 
Hi Radhika,

Could you tell us some more information, such as the tables and columns
involved and how the tables are related? Also, what field(s) you are trying
to update and any errors you are getting.

Clifford Bass
 
Use a Cascading-Update so the matching records in the related table get
changed automatically when you change the value on the ONE side of the
relationship.

Open the Relationships window.
Make sure you have a relationship between the 2 tables.
Double-click the line joining them.
Access pops up the Edit Relationships dialog.
Check the box for Cascading Updates.

(You must have the Referential Integrity checked or the Cascading Updates
box is disabled.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IIf statement in update query 3
Expression in query 2
Expression in query 2
Access Updating inventory levels 0
Update primary Key. 1
Access Update Query 2
Update query with true/false 3
Count and sum per month in a query 2

Back
Top