I´m having the same problem.
I have one table I want to delete from, and another containing the ID:s of
the rown I want to delete. I've made a simple join (so only ID:s preset in
both tables will be included). It works fine in prewiew, but won´t delete,
returning the same error message as for Steven.
Are there any specific criteria the tables must/musn't fulfil in order for
rows to be deleted? Anything reguarding connections to other tables or types
of data in the table?
And where do I find the SQL when running a simpla query like this, which you
asked Steven to post?
Thanks!
/Johanna
"Ofer" skrev:
Can you post your SQL?
Try and change it to
DELETE DISTINCTROW Parts_Detail.*
FROM Parts_Detail INNER JOIN Query4 ON Parts_Detail.['ID'] = Query4.['ID']
--
Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck
Steven M. Britton said:
I have done as you suggested and if I switch to Datasheet view I can see the
27 records I want to delete. But when I hit the ! for run I get the same
error???
Further Ideas?
:
First make back up for your data, there will be no return
In the Query join the table and the query, instead of creating a criteria
DELETE Parts_Detail.*
FROM Parts_Detail INNER JOIN Query4 ON Parts_Detail.['ID'] = Query4.['ID']
For future reference you should try and avoid names that includes quotes
--
Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck
:
This is giving me the error: "Could not delete from specified tables."
Little help?
DELETE Parts_Detail.['ID'], Parts_Detail.*
FROM Parts_Detail, Query4
WHERE (((Parts_Detail.['ID'])=[Query4]!['ID']));