non-updatable query frustration

  • Thread starter ragtopcaddy via AccessMonster.com
  • Start date
R

ragtopcaddy via AccessMonster.com

In the following generic example, why is the query result not updatable?
There are 2 tables in the query. tblA has 5 fields and I'd like to update
field4 with a value returned from a corresponding field in tblB. I've
presented it here as a select query because I can't update the resulting
records in the select query, either. I assume if I can figure out how to
update the select query manually, I'll be able to run the update query.

SELECT tblA.field4, tblA.field5
FROM tblA INNER JOIN tblB ON (tblA.field1 = tblB.field1) AND (tblA.field2 =
tblB.field2) AND (tblA.field3 = tblB.field3);

Thanks,

Bill R
 
G

Granny Spitz via AccessMonster.com

ragtopcaddy said:
In the following generic example, why is the query result not updatable?

Field1, field2 and field3 must be the primary key (or have a unique index, no
nulls) in the table on the one side (tblB?) and field1, field2 and field3
must have a unique index, no nulls, in the table on the many side (tblA?).
 
R

ragtopcaddy via AccessMonster.com

Thanks for you help. I'll check for nulls in the tables.
 
G

Granny Spitz via AccessMonster.com

ragtopcaddy said:
Thanks for you help. I'll check for nulls in the tables.

You're welcome, Bill. I mentioned the nulls because nulls are never equal to
nulls in joins.
 

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

Top