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 / Forms Programming / May 2008

Tip: Looking for answers? Try searching our database.

is UPDATE or DELETE QUERY able to touch another database?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mezzanine1974 - 21 May 2008 09:08 GMT
Is it possible to UPDATE or DELETE any record which is located on
another database table, by using update and delete query?
I can manipulate a table on another database by using APPEND and MAKE
TABLE query.
Thank you for any help.
Douglas J. Steele - 21 May 2008 11:39 GMT
UPDATE [;DATABASE=E:\Folder\File.mdb].TableName
SET Field2 = 4
WHERE Field1 = 2

DELETE FROM [;DATABASE=E:\Folder\File.mdb].TableName
WHERE Field1 = 3

Of course, you can also just link to the table.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Is it possible to UPDATE or DELETE any record which is located on
> another database table, by using update and delete query?
> I can manipulate a table on another database by using APPEND and MAKE
> TABLE query.
> Thank you for any help.
mezzanine1974 - 21 May 2008 13:30 GMT
Hello Doug,
Thanks for your explanaiton.
I tried all combinations below but i failed. Could you please clarify.
I can not fix Syntax problem.

UPDATE [;\\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb].Tbl_Nakladnaya
UPDATE [;' \\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb'].Tbl_Nakladnaya
UPDATE ' ;\\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb'.Tbl_Nakladnaya
UPDATE ";\\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb".Tbl_Nakladnaya
UPDATE [' \\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb'].Tbl_Nakladnaya
UPDATE ' \\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb'.Tbl_Nakladnaya
UPDATE "\\mer_rus_1\financedata$
\X_FROM_YULIA_TO_LILIYA_X.mdb".Tbl_Nakladnaya
Douglas J. Steele - 21 May 2008 14:13 GMT
You're mssing the DATABASE= part of the address:

UPDATE
[;DATABASE=\\mer_rus_1\financedata$\X_FROM_YULIA_TO_LILIYA_X.mdb].Tbl_Nakladnaya

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hello Doug,
> Thanks for your explanaiton.
[quoted text clipped - 15 lines]
> UPDATE "\\mer_rus_1\financedata$
> \X_FROM_YULIA_TO_LILIYA_X.mdb".Tbl_Nakladnaya
mezzanine1974 - 22 May 2008 14:25 GMT
It is working excellent now!
I tried before with DATABASE part and failed. But i understood that
SET and WHERE parts of my SQL code was wrong.
Thank you Douglas
 
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.