Hi,
I have a table GUPI where I have p_key, AcctUnit, Employee, Description columns. Here p_key is the primary key for this table
I have to copy AcctUnit for each Employee where Description="Regular Earnings" to the AcctUnit of that Employee where Description = "401K". I used the following Query
When I am trying to run this query, this message is popping up
Operation must be an Updatable Query [/color red]
Can any one tell me whats wrong with this query and how to write it
Thanks
I have a table GUPI where I have p_key, AcctUnit, Employee, Description columns. Here p_key is the primary key for this table
I have to copy AcctUnit for each Employee where Description="Regular Earnings" to the AcctUnit of that Employee where Description = "401K". I used the following Query
Code:
[COLOR=red]
UPDATE gupi AS a SET [a].AcctUnit=(SELECT DISTINCT [b].AcctUnit FROM gupi AS b WHERE (([a].Employee=[b].Employee) AND ([b].Description="Regular Earnings")))WHERE (([a].Description="401K Match %") AND ([a].Account=4150));
[/color red]
When I am trying to run this query, this message is popping up
Operation must be an Updatable Query [/color red]
Can any one tell me whats wrong with this query and how to write it
Thanks