Solved

Update query based on a query

Posted on 2006-11-09
3
302 Views
Last Modified: 2012-08-13

Good afternoon Experts,

I am working with MS Access 2000.

There is a field called Requestors in a table called Tbl_Credit_Requests.
I need to change the values in this field from the user id to the persons first and last name.
The first and last name will come from Tbl_Employee.
Below is my sql:

Update Tbl_Credit_Requests

Set Requestor = (SELECT E.F_Name  & " " &  E.L_Name As Requestor2 FROM Tbl_Emp AS E where E.UserId = Tbl_Credit_Requests.Requestor)

Unfortunately, I get an error that states, “Operation must use an updateable query.”

Any advise is greatly appreciated.

Thank you,
0
Comment
Question by:TylerDerden
3 Comments
 
LVL 7

Expert Comment

by:rohanbairat3
ID: 17907845
What front end are you using

Check if you have permissions on the mdb file

http://databases.aspfaq.com/database/how-do-i-solve-operation-must-use-an-updateable-query-errors.html
0
 
LVL 77

Accepted Solution

by:
peter57r earned 250 total points
ID: 17907977
Hi TylerDerden,

 Update Tbl_Credit_Requests inner join  Tbl_Emp as E
On  E.UserId = Tbl_Credit_Requests.Requestor
Set Requestor =E.F_Name  & " " &  E.L_Name

I am assuming that you have ensured that the UserID field is a text field of sufficient size to hold the name.


Pete
0
 

Author Comment

by:TylerDerden
ID: 17908171

rohanbairat3,

Sorry I should have posted this specifically under MS Access.

peter57r,

Yes, I did thank you. Worked like a charm.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question