Excel_Kid1081
Registered User.
- Local time
- Yesterday, 20:08
- Joined
- Jun 24, 2008
- Messages
- 34
Hello-
I have a question regarding doing an Update query from one table to another when the table relationships look like this:
tblProjects
Project_Code-Primary Key
Project_Description
tblSecurities
Security_ID-Primary Key
Project_Code
tblHoldings
Security_ID-Primary Key
IssueType
What I am trying to do is update the IssueType in tblHoldings with the Project_Description from tblProjects. When I run a SELECT query the results work (i.e. I put in the tblHoldings.Security_ID,tblProject.Project_Description for the output fields), however, when I run an update query the Issue_Type shows up blank despite putting tblProjects.Project_Description in UPDATE TO:
Here it is in SQL if this helps:
UPDATE (tblProjects INNER JOIN tblSecurities ON tblProjects.Project_Code = tblSecurities.Project_Code) INNER JOIN tblAllHoldings ON tblSecuities.Security_ID = tblAllHoldings.Security_ID SET tblAllHoldings.IssuerType = tblProjects.Project_Description;
Are my table relationships just not correct or can you not use three tables in an update query?
Thanks!!
EK
I have a question regarding doing an Update query from one table to another when the table relationships look like this:
tblProjects
Project_Code-Primary Key
Project_Description
tblSecurities
Security_ID-Primary Key
Project_Code
tblHoldings
Security_ID-Primary Key
IssueType
What I am trying to do is update the IssueType in tblHoldings with the Project_Description from tblProjects. When I run a SELECT query the results work (i.e. I put in the tblHoldings.Security_ID,tblProject.Project_Description for the output fields), however, when I run an update query the Issue_Type shows up blank despite putting tblProjects.Project_Description in UPDATE TO:
Here it is in SQL if this helps:
UPDATE (tblProjects INNER JOIN tblSecurities ON tblProjects.Project_Code = tblSecurities.Project_Code) INNER JOIN tblAllHoldings ON tblSecuities.Security_ID = tblAllHoldings.Security_ID SET tblAllHoldings.IssuerType = tblProjects.Project_Description;
Are my table relationships just not correct or can you not use three tables in an update query?
Thanks!!
EK