Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / January 2006

Tip: Looking for answers? Try searching our database.

Help with my first Delete Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 05 Jan 2006 12:38 GMT
This is the SQL from the Design View.

I get an "Could not delete from specified tables" prompt.

This is my first attempt at a Delete Query.

DELETE EmplDB.*, EmplDB.STATUS
FROM EmplDB INNER JOIN EmplIDDB_Del ON (EmplDB.STATUS = EmplIDDB_Del.STATUS)
AND (EmplDB.EMPLID = EmplIDDB_Del.EMPLID)
WHERE (((EmplDB.STATUS)="i"));

Thanks in advance

dave
TedMi - 05 Jan 2006 13:45 GMT
The syntax of the DELETE statement allows a filed list of [tableName].* - you
cannot name aditional fields.
Signature

Ted

John Spencer - 05 Jan 2006 14:00 GMT
Try

DELETE DISTINCTROW EmplDB.*
FROM EmplDB INNER JOIN EmplIDDB_Del ON (EmplDB.STATUS = EmplIDDB_Del.STATUS)
AND (EmplDB.EMPLID = EmplIDDB_Del.EMPLID)
WHERE (((EmplDB.STATUS)="i"));

> This is the SQL from the Design View.
>
[quoted text clipped - 10 lines]
>
> dave
Dave - 05 Jan 2006 15:03 GMT
Thank you John!!

Worked like a champ :-)

Dave

> Try
>
[quoted text clipped - 18 lines]
>>
>> dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.