473,395 Members | 1,460 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,395 software developers and data experts.

Deleting the Values in A Field for All Records

DD
Hi,

I have an Access DB, for which I have created a form.
On the form I have a checkbox control. I would like to create a
button on my form that would clear the check from the checkbox for all
records.

I am not sure how to do this any help would be greatly appreciated

Thanks
Jul 2 '06 #1
3 1531
if the form is bound to a table, and the checkbox control is bound to a
Yes/No field in that table, then in the command button's Click event
procedure, you can run an Update query to change the value of the field from
True (checked) to False (un-checked), as

CurrentDb.Execute "UPDATE TableName " _
& "SET FieldName = False", dbFailOnError
Me.Requery

substitute the correct table name and field name, of course.

hth
"DD" <dr*****@cinci.rr.comwrote in message
news:26********************************@4ax.com...
Hi,

I have an Access DB, for which I have created a form.
On the form I have a checkbox control. I would like to create a
button on my form that would clear the check from the checkbox for all
records.

I am not sure how to do this any help would be greatly appreciated

Thanks

Jul 2 '06 #2
DD
Thank you very much!!

On Sun, 02 Jul 2006 04:27:15 GMT, "tina" <no****@address.comwrote:
>if the form is bound to a table, and the checkbox control is bound to a
Yes/No field in that table, then in the command button's Click event
procedure, you can run an Update query to change the value of the field from
True (checked) to False (un-checked), as

CurrentDb.Execute "UPDATE TableName " _
& "SET FieldName = False", dbFailOnError
Me.Requery

substitute the correct table name and field name, of course.

hth
Jul 2 '06 #3
you're welcome :)
"DD" <dr*****@cinci.rr.comwrote in message
news:4j********************************@4ax.com...
Thank you very much!!

On Sun, 02 Jul 2006 04:27:15 GMT, "tina" <no****@address.comwrote:
if the form is bound to a table, and the checkbox control is bound to a
Yes/No field in that table, then in the command button's Click event
procedure, you can run an Update query to change the value of the field
from
True (checked) to False (un-checked), as

CurrentDb.Execute "UPDATE TableName " _
& "SET FieldName = False", dbFailOnError
Me.Requery

substitute the correct table name and field name, of course.

hth

Jul 2 '06 #4

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

Similar topics

0
by: Duncan Smith | last post by:
Hello, I'm not very experienced in SQL and I need some advice. I have a comma separarated values file containing around 20 million records and about 20 fields. There are many missing values...
3
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the...
2
by: Ross | last post by:
i have less hair now than i used to...i have a database with many duplicate records in it with only one exception, there is one field with the date it was put in the database and that is different....
2
by: Emmett Power | last post by:
Hi, I have an Access table with a number of records which refer to the same person but with data in different fields. So for example the table would look like this: Name..............Field...
1
by: Coy Howe | last post by:
This one seems bizarre! We have a database consisting of a main table and 12 - 15 "sub" tables, which are connected via cascading relationships. The database performs many complex calculations...
3
by: skennd | last post by:
Here's my problem in exact replication: I have used the find duplicate query in Access, and the query determined the following duplicate values by the following query: In (SELECT FROM As...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
1
by: tillmanj | last post by:
I am attempting to clean up some data for migration to a new system, and I am stuck on dealing with duplicated user records. The following fields in tblUser are germane to the problem: UserID:...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.