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 / SQL Server / ADP / November 2005

Tip: Looking for answers? Try searching our database.

How to Update from One table to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joshua A. Booker - 11 Nov 2005 19:50 GMT
Hi There,

How do I do this in an ADP?

UPDATE tbl_QuoteDates INNER JOIN Quotes ON tbl_QuoteDates.QuoteId =
Quotes.[Quote ID] SET tbl_QuoteDates.CustomerID = [Quotes].[CustomerID];

It appears as though the update statement cannot have joins?  If so, then
how is this update done?

TIA,
Josh
giorgio rancati - 11 Nov 2005 20:11 GMT
Hi Josh

----
UPDATE tbl_QuoteDates
  SET tbl_QuoteDates.CustomerID = [Quotes].[CustomerID]
FROM   tbl_QuoteDates INNER JOIN
      Quotes ON tbl_QuoteDates.QuoteId = Quotes.[Quote ID];
----

bye
Signature

Giorgio Rancati
[Office Access MVP]

> Hi There,
>
[quoted text clipped - 8 lines]
> TIA,
> Josh
Sylvain Lafontaine - 11 Nov 2005 20:13 GMT
The syntaxe is a little different between Access and SQL-Server.  Try
something like:

UPDATE tbl_QuoteDates
SET tbl_QuoteDates.CustomerID = [Quotes].[CustomerID]
FROM tbl_QuoteDates INNER JOIN Quotes ON tbl_QuoteDates.QuoteId =
Quotes.[Quote ID]

Signature

Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF

> Hi There,
>
[quoted text clipped - 8 lines]
> TIA,
> Josh
 
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.