
Originally Posted by
June7
Just setting a field in table as "required" is a validation rule. If none (other than primary key) are set as "required", then that cannot be cause of issue.
There is no JOIN clause and TblMastertube is not referenced in that SQL. Is that the complete statement? Why is the WHERE clause up against [Lots].[C]?
Are you using the query designer to construct query?
Yes I was using the query designer to construct the query. I am not sure why but that code was the wrong one. Here:
Code:
UPDATE TblHeatsMaster SET TblHeatsMaster.Heats = [Forms]![FrmMastertube]![Heat], TblHeatsMaster.C = [Forms]![FrmMastertube]![C]
WHERE (((TblHeatsMaster.Heats)=[Forms]![FrmMastertube]![ImHeatCbo]));
It is giving me a key violation. [TblHeatsMaster] has a primary key of Heats. [FrmMastertube] shouldn't have a primary key but [TblMastertube] has a primary key of ID.