S
Steve
Hello, I have tables tblDeleted and tblBaseline. I want
all records in tblDeleted to be deleted from
tblBaseline. Four attributes comprise the composite key,
[Dept Nm], [Job Tle Cd], [Stn Cd2] and [Dept Nbr]. The
info comes from the data warehouse so I can't control the
spaces in the field names. Here is my SQL:
DELETE tblBaseline.*
FROM tblBaseline INNER JOIN tblDeleted ON (tblBaseline.
[Dept Nm] = tblDeleted.[Dept Nm]) AND (tblBaseline.[Job
Tle Cd] = tblDeleted.[Job Tle Cd]) AND (tblBaseline.[Stn
Cd2] = tblDeleted.[Stn Cd2]) AND (tblBaseline.[Dept Nbr]
= tblDeleted.[Dept Nbr]);
I get an error: Cound not delete from specified table.
Any Idea on what causes this and how to fix it?
Thanks
all records in tblDeleted to be deleted from
tblBaseline. Four attributes comprise the composite key,
[Dept Nm], [Job Tle Cd], [Stn Cd2] and [Dept Nbr]. The
info comes from the data warehouse so I can't control the
spaces in the field names. Here is my SQL:
DELETE tblBaseline.*
FROM tblBaseline INNER JOIN tblDeleted ON (tblBaseline.
[Dept Nm] = tblDeleted.[Dept Nm]) AND (tblBaseline.[Job
Tle Cd] = tblDeleted.[Job Tle Cd]) AND (tblBaseline.[Stn
Cd2] = tblDeleted.[Stn Cd2]) AND (tblBaseline.[Dept Nbr]
= tblDeleted.[Dept Nbr]);
I get an error: Cound not delete from specified table.
Any Idea on what causes this and how to fix it?
Thanks