Re: Update external database
From: John Vinson (jvinson_at_STOP_SPAM.WysardOfInfo.com)
Date: 10/18/04
- Next message: John Vinson: "Re: specialized query"
- Previous message: Wayne Morgan: "Re: Bug in Calculated Field?"
- In reply to: Chad: "Re: Update external database"
- Next in thread: Chad: "Re: Update external database"
- Reply: Chad: "Re: Update external database"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 16:42:23 -0600
On Mon, 18 Oct 2004 11:41:03 -0700, "Chad"
<Chad@discussions.microsoft.com> wrote:
>Mr. Vinson,
> Thank you for yoru reply, unfortunately I believe I might not have
>accurately depicted what I need. I actually need to updated a table in
>another database.... Here is the statement that I have:
>
>UPDATE Table1 In "C:\db1.mdb"
>INNER JOIN Table1 AS Table1_1 ON Table1.Req = Table1_1.Req
>SET Table1.Field2 = [Table1_1].[Field1], Table1.Field3 = [Table1_1].[Field2]
>WHERE (((Table1.field4)=True));
>
>
>But when I run this I get a syntax error and it points to 'INNER JOIN'. Is
>there a way to do this?
Yes. The way I suggested: using File... Get External Data... Link to
link to the remote table rather than using the IN clause.
I think your IN syntax can be made to work though: try running it from
db1.mdb, to update the local table instead of the remote table.
UPDATE Table1
INNER JOIN Table1 In "C:\db2.mdb" AS Table1_1
ON Table1.Req = Table1_1.Req
SET Table1.Field2 = [Table1_1].[Field1], Table1.Field3 =
[Table1_1].[Field2]
WHERE (((Table1.field4)=True));
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
- Next message: John Vinson: "Re: specialized query"
- Previous message: Wayne Morgan: "Re: Bug in Calculated Field?"
- In reply to: Chad: "Re: Update external database"
- Next in thread: Chad: "Re: Update external database"
- Reply: Chad: "Re: Update external database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|