Jumat, 28 November 2014

Re: [MS_AccessPros] Error: Could not delete from the specified tables (MS Access 2010 or 2013)

 

Norbert-


The stupid query designer has always been like that.  I you need to build a multi-table delete query, build the SELECT query first, uncheck Show for all the unnecessary fields, include table.* for the table that's the target of the delete, then switch to a DELETE query.  That should avoid the extra fields in the DELETE clause.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)




On Nov 28, 2014, at 3:00 PM, drnorbert@msn.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

John,

The code was created with: Design View Query Type: Delete.

Do you know if is a glitch in MSAccess 2010/2013 regarding this issue?



Also I am having the same error with the following SQL View code:


DELETE tblCity.*, tblCityStateZip.Zipcode, tblCityStateZip.City, tblCityStateZip.State
FROM tblCityStateZip RIGHT JOIN tblCity ON (tblCityStateZip.State = tblCity.State) AND (tblCityStateZip.City = tblCity.City) AND (tblCityStateZip.Zipcode = tblCity.Zip)
WHERE (((tblCityStateZip.Zipcode) Is Null) AND ((tblCityStateZip.City) Is Null) AND ((tblCityStateZip.State) Is Null));


Thanks

Norbert


__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

.

__,_._,___

Tidak ada komentar:

Posting Komentar