473,563 Members | 2,767 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2982
(air code)
UPDATE Research_New Set PrintQueue = 0
Fred Zuckerman

<co*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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*********@gm ail.comwrote in message
news:11******** *************@7 4g2000cwt.googl egroups.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*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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*********@gma il.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.Execu te "QueryName" , dbFailOnError

You can also use...

DoCmd.RunSQL "UPDATE SQL Statement"

or

CurrentDB.Execu te "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
1771
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 the best way to do this! Do I need to individually place and databind 90 checkboxes (and label them!) or is there a better way? Note, this is 90...
7
13618
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 tried with document.form_Name.ListBox_Name.options.selected =
1
14444
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 form called "returns", by doing this I select records for an append query and do some other things with this info. Any VBA code I could use to...
2
1738
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 checkboxes checked, I must do a different query.
1
6809
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 column and be able to select.deselect all items that I have found. I am using C#.Net Thanks in advance for this
5
4190
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 presses delete. When delete is pressed, I want to go to a next page and run a sql command for every single box thats checked. The checkboxes store a...
18
2711
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 haven't came across anything. Right now I have a command button on the form, that is able to deselect one checkbox for a single record. I don't want to...
1
3201
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 construct the update query so that it picks up when a user checks/unchecks the checkbox and updates the db w/ the matching record ID#. Right now, if a...
1
4578
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) self.Bind(wx.EVT_LISTBOX, self.select_dev, self.devlist) to create this box, but don't know how to implement self.select_dev
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.