?
Solved

Update query based on a query

Posted on 2006-11-09
3
Medium Priority
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Suggested Courses

764 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