473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Deselect all checkboxes by one query

Hi: In my table there is a field of type checkbox. I create a button on
my form and wants to deselect all the checkboxes in that field
(PrintQueue).

Table: Research_New
PrintQueue Format Yes/No

Thanks for help.

Aug 15 '06 #1
5 2962
(air code)
UPDATE Research_New Set PrintQueue = 0
Fred Zuckerman

<co*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi: In my table there is a field of type checkbox. I create a button on
my form and wants to deselect all the checkboxes in that field
(PrintQueue).

Table: Research_New
PrintQueue Format Yes/No

Thanks for help.

Aug 15 '06 #2
It gives error:
Invalid operation
-------------------------------------
UPDATE Research_New Set PrintQueue = 0
Table: Research_New
PrintQueue Data Type: Yes/No
--------------------------------------------------
Fred Zuckerman wrote:
(air code)
UPDATE Research_New Set PrintQueue = 0
Fred Zuckerman

<co*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi: In my table there is a field of type checkbox. I create a button on
my form and wants to deselect all the checkboxes in that field
(PrintQueue).

Table: Research_New
PrintQueue Format Yes/No

Thanks for help.
Aug 15 '06 #3
It works for me on a test.
Are you sure of your table name, field name, and data type?
Are you running the statement from code in a form event or are you pasting
directly into a query.
If you're running from code, then what is your statement (exactly)? And
which event?

Code should be something like:
DoCmd.RunSQL "UPDATE Research_New Set PrintQueue = 0"

Fred Zuckerman
<co*********@gmail.comwrote in message
news:11*********************@74g2000cwt.googlegrou ps.com...
It gives error:
Invalid operation
-------------------------------------
UPDATE Research_New Set PrintQueue = 0
Table: Research_New
PrintQueue Data Type: Yes/No
--------------------------------------------------
Fred Zuckerman wrote:
(air code)
UPDATE Research_New Set PrintQueue = 0
Fred Zuckerman

<co*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi: In my table there is a field of type checkbox. I create a button
on
my form and wants to deselect all the checkboxes in that field
(PrintQueue).
>
Table: Research_New
PrintQueue Format Yes/No
>
Thanks for help.
>

Aug 15 '06 #4
Can any one please tell me the steps that how to run an update query on
the table

Thank You.

Aug 16 '06 #5
co*********@gmail.com wrote:
Can any one please tell me the steps that how to run an update query
on the table

Thank You.
Where? From Code? Manually via the GUI?

To run an update query manually you create a new query, add your table, set
the query type in the menu to UPDATE and then configure the changes you want
to make to the desired columns and then presss the exclamation point button
in the toolbar. If you save an UPDATE query then it can be run simply by
opening it from the db window.

From code you can run a saved UPDATE query with...

DoCmd OpenQuery "QueryName"

or (preferred)

CurrentDB.Execute "QueryName", dbFailOnError

You can also use...

DoCmd.RunSQL "UPDATE SQL Statement"

or

CurrentDB.Execute "UPDATE SQL Statement", dbFailOnError

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Aug 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mike Lerch | last post by:
I have a database with 90-odd true-false values that I need to display on a webform as checkboxes. There are also some other values (numbers and text) that need to be displayed. I'm wondering...
7
by: deepagulati | last post by:
Hi, I need an urgent help from you. When we dynamically genrate any list box (Select Box) it shows one default value as selected. Is there any way that we can deselect that value. I...
1
by: Heck | last post by:
Hi everyone. I have created a simple table called "ReceptionTable" to input all materials coming to a drilling rig. I have included in this table a yes/no field (check box) that is selected from a...
2
by: GustavoBrust | last post by:
Hello everyone. I'm having a problem with a search I want to make. It's like this: The user can choose about 15 checkboxes to be his search pattern. According to the combination of...
1
by: VBNovice05 | last post by:
I run a search on my database and get items that fit that search in a datagrid. There are checkboxes already for each item. I need to create a select/deselect all checkbox at the top of the...
5
by: ameshkin | last post by:
What I want to do is very simple, but I'm pretty new at PHP and its a little hard for me. I have one page, where there are a rows of checkboxes. A button selects all checkboxes, and then...
18
by: klove1209 | last post by:
Good afternoon, I would like to know if anyone can direct me as to how I can write a VBA code to deselect about 26 check boxes, for all records. I have been searching the internet, but I...
1
by: hmlarson | last post by:
I have a form/table with checkboxes that I would like the user to check / uncheck if they want a certain record to display in a gallery on a website. I'm having problems figuring out how to...
1
by: Bailu | last post by:
Hi, I am a newbie in wxPython and doing a program with ListBox, I want to select and deselect items in this box, I have use self.devlist = wx.ListBox(self, style=wx.LB_MULTIPLE)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.