Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Query Help

Status
Not open for further replies.

MadMax7

MIS
Feb 17, 2004
62
GB
Hope someone can help

I am trying to run the following delete query

SELECT tblAlternativeNetworkCallDetail.*, CDate(Left([StartDateTime],10)) AS Expr1
FROM tblAlternativeNetworkCallDetail INNER JOIN tblMidTermAnsPoints ON tblAlternativeNetworkCallDetail.TAD = tblMidTermAnsPoints.TAD
WHERE (((CDate(Left([StartDateTime],10)))=[forms]![FrmPreviewReport]![txtStartDate]));

but when i try and run the query i am getting a error sayinmg that i can not "delete from specified table"

i have chencked the help file and this mentions security issues and read only issues, none of these are a problem

 
It seems most likely that neither of your tables has a unique index.
 
sorry do you mean i need to add a primary key into one iof the tables
 
Yes, I do. Deletes do not work with joined tables where neither of them has a key field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top