Click here to Skip to main content
15,887,962 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have one database in microsoft access 2007 in which there is a table named downloaded resources in which there is a " yes / no " column (checkbox) which is no by default and there are around 15000 rows in that table, now what i want to do is make a query which could check all that checkbox in one go..

I have tried this query: UPDATE resource SET isdownloaded = 'Yes' where ResourceId = 10786 ;

i am only trying to update one row but it is showing me you cant update this records..

Please suggest me how to resolve this problem...


Regards,
Krunal panchal
Posted

When I check the SQL statement used in Access 2007 you can use either
SQL
UPDATE resource SET isdownloaded = True where ResourceId = 10786 ;

or
SQL
UPDATE resource SET isdownloaded = Yes where ResourceId = 10786 ;
 
Share this answer
 
May be its opened exclusively by another program so it has became read only.

Or may be its design view is open in another window so you can not change the tables ?

Or may be the file is readonly ?

And the syntax of query is OK so no other things are imaginable !
 
Share this answer
 
Use the following query this will help you:

UPDATE resource SET isdownloaded = 1 where ResourceId = 10786
 
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