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 / November 2007

Tip: Looking for answers? Try searching our database.

"update ta set ta.ra=1 from tablename ta"  how can pass in Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lll-j - 01 Nov 2007 15:51 GMT
is it can be pass in the Access?
how to change?
thanks!

update       ta  
set       col       =       t.col  
from       ta,(select       id,max(col)       col       from       tb      
group       by       id)       t  
where       ta.id       =       t.id
Michel Walsh - 01 Nov 2007 16:38 GMT
UPDATE ta SET col = DMAX("col" , "tb", "id=" & id )

or  (untested)

UPDATE ta INNER JOIN tb ON ta.id=tb.id
SET ta.col = tb.col
WHERE  tb.col = ( SELECT MAX(col) FROM tb AS c WHERE c.id = ta.id )

A Jet query implying an aggregate (elsewhere than in a sub-query in the
WHERE clause) is NOT updateable.

Vanderghast, Access MVP

> is it can be pass in the Access?
> how to change?
[quoted text clipped - 5 lines]
> group       by       id)       t
> where       ta.id       =       t.id
 
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.