cwolgamott
Programmer
Hello.
I have been looking through this forum to find a possible solution to a problem I have been having with a delete query. I would like to be able to delete from two tables joined together by a field in one of the tables. I have tried several statements but none of them seem to work. Here is the latest statement that I tried:
DELETE Meter.*, Reading.*
FROM Meter LEFT JOIN Reading ON Meter.MeterNum = Reading.MeterNum WHERE Reading.ProcessedReadFlag='Y';
This brings back the records that I want to delete, but when I try to delete them, I get the following message:
Could not delete from specified tables.
I would greatly appreciate any suggestions or comments on how I might be able to solve my problem. Thank you.
DELETE Meter.*, Reading.*
FROM Meter LEFT JOIN Reading ON Meter.MeterNum = Reading.MeterNum WHERE Reading.ProcessedReadFlag='Y';
This brings back the records that I want to delete, but when I try to delete them, I get the following message:
Could not delete from specified tables.
I would greatly appreciate any suggestions or comments on how I might be able to solve my problem. Thank you.