You may need to use an Update Query WITH an inner join.
e.g.
UPDATE t1
INNER JOIN t2
ON t1.CustomerID = t2.CustomerID
SET t1.field = [t2].[field]

Signature
Steve Clark, Access MVP
http://www.fmsinc.com/consulting
*FREE* Access Tips: http://www.fmsinc.com/free/tips.html
Hi,
Thank you, I'll try this.
However, I'm also kind of confused as to where to place this code? Okay so,
I create a "new" query using the SQL view, add the query statement. However
do I need to link anything else on the form - other than linking the Comm
Name field (on the Issues form) to the Comm Name field in the Issues Table?
I'm assuming that the query will cause the Issues Table (Comm Name field) to
be automatically updated when I enter in data in the Issues Table (Project
Name field)? Hopefully when the (control of ) Comm Name field (on the Issues
Form) is linked to the Issues Table (Comm Name field) this will cause it (the
comm name) to appear there when the Project Name is entered into the Issues
Form.
Again, thank you for your help! I'll try it and be back later...
> You may need to use an Update Query WITH an inner join.
>
[quoted text clipped - 60 lines]
> >
> > Sarah
newsneakers - 29 Mar 2006 21:32 GMT
Hi again...
I just created a Query using the following syntax:
UPDATE Issues
INNER JOIN Projects
ON Issues.Project Name= Projects.Project Name
SET Issues.Comm Name = [Projects].[Comm Name]
however, I'm getting the following error message:
Syntax error (missing operator) in query expression 'Issues.Project Name =
Projects.Project Name'
Sarah
> Hi,
> Thank you, I'll try this.
[quoted text clipped - 78 lines]
> > >
> > > Sarah
John Vinson - 29 Mar 2006 22:20 GMT
>Hi again...
>I just created a Query using the following syntax:
[quoted text clipped - 8 lines]
>Syntax error (missing operator) in query expression 'Issues.Project Name =
>Projects.Project Name'
This is one reason to avoid using special characters - SUCH AS BLANKS
- in table or field names. A blank is meaningful punctuation; Access
is seeing
ON Issues.Project
and thinking you're at the end of something, and it's looking for an
operator (such as an equals sign).
If you must use blanks or other special characters, you must always
enclose names in [brackets]:
UPDATE Issues
INNER JOIN Projects
ON Issues.[Project Name] = Projects.[Project Name]
SET Issues.[Comm Name] = [Projects].[Comm Name]
John W. Vinson[MVP]
newsneakers - 29 Mar 2006 22:49 GMT
Hi John,
<lol>
We must have posted replies at the same time... I just remembered that rule.
I changed the query statement to include brackets... and it worked just
fine!
Thank you so much!
Sarah
> >Hi again...
> >I just created a Query using the following syntax:
[quoted text clipped - 27 lines]
>
> John W. Vinson[MVP]
newsneakers - 29 Mar 2006 22:45 GMT
I revised the Update query to the following:
UPDATE Issues INNER JOIN Projects ON Issues.[Project Name] =
Projects.[Project Name] SET Issues.[Community Name] = Projects.[Community
Name];
I had forgotten that when your field name has two words, you must include it
in brackets!
It WORKED!
Thanks You !
> Hi,
> Thank you, I'll try this.
[quoted text clipped - 78 lines]
> > >
> > > Sarah