[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

Update query based on a query


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
TylerDerden
Asked:
TylerDerden
1 Solution
 
rohanbairat3Commented:
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
 
peter57rCommented:
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
 
TylerDerdenAuthor Commented:

rohanbairat3,

Sorry I should have posted this specifically under MS Access.

peter57r,

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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now