Hi All,
Used the Access 2000 design area to create a Delete Query. When Previewing the query I see the exact records I want to delete. When running the query the error "Could not delete from specified tables" appears.
Am following the exact steps from help and MS Kb. Any ideas ?
Here is the sql ...
DELETE ILS.*, dbo_tblInvoiceDetail.PARTID, dbo_tblInvoice.DTINVOICE
FROM (ILS INNER JOIN dbo_tblInvoiceDetail ON ILS.PARTID = dbo_tblInvoiceDetail.PARTID) INNER JOIN dbo_tblInvoice ON dbo_tblInvoiceDetail.INVOICEID = dbo_tblInvoice.INVOICEID
WHERE (((dbo_tblInvoice.DTINVOICE)>(Now()-365)));
This query should delete records in table ILS which is related to table InvoiceDetail based on an Invoice date in table Invoice (which InvoiceDetail is related to).
Any ideas greatly appreciated.
Thanks, Steve.
Steve Austin
MIS Department
Helicopter Support, Inc.
(p): (203)795-6051 Ext. 3378
(f): (203)799-5020
Used the Access 2000 design area to create a Delete Query. When Previewing the query I see the exact records I want to delete. When running the query the error "Could not delete from specified tables" appears.
Am following the exact steps from help and MS Kb. Any ideas ?
Here is the sql ...
DELETE ILS.*, dbo_tblInvoiceDetail.PARTID, dbo_tblInvoice.DTINVOICE
FROM (ILS INNER JOIN dbo_tblInvoiceDetail ON ILS.PARTID = dbo_tblInvoiceDetail.PARTID) INNER JOIN dbo_tblInvoice ON dbo_tblInvoiceDetail.INVOICEID = dbo_tblInvoice.INVOICEID
WHERE (((dbo_tblInvoice.DTINVOICE)>(Now()-365)));
This query should delete records in table ILS which is related to table InvoiceDetail based on an Invoice date in table Invoice (which InvoiceDetail is related to).
Any ideas greatly appreciated.
Thanks, Steve.
Steve Austin
MIS Department
Helicopter Support, Inc.
(p): (203)795-6051 Ext. 3378
(f): (203)799-5020