Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i am using following syntax for update the table in access db

SQL
OleDbCommand cm = new OleDbCommand("update Count1 set Count1.Cot=(select sum(temp.Qty) from temp where temp.Itemcode=" + re11[0].ToString() + ") where Count1.ItemCode="+re11[0].ToString()+"", con);
               cm.ExecuteNonQuery();

i got the following error as
Operation must use an updateable query 

how can i solve it pleas help me


Thanks & Regards
dineshkumar R
Posted
Updated 2-Jun-11 0:25am
v2

1 solution

verify your access file have write permission.

this link will help you
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=107[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900