473,473 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Checkbox remains checked

13 New Member
I am trying to add a checkbox to a form and am having a rather basic problem. As you will quickly tell I am not an access person, but my boss seems to think so :)
Anyhow, I needed to add a field but couldn't add it to the original table as it is linked. So I created a new table just for the sake of tracking the data. (called Mentor). I created a primary key auto number (ingMentorID), the checkbox info (blnMentor) and (ReadingCoachID) which is what a link to on the relationships page with the main table (going with relationship all Reading Coach, and Mentor where data is the same).
So then on the main form I added a checkbox. I told it use control source blnMentor but in order to do so I had to change to property setting of the mainform to have the record source be tblMentor (otherwise blnmentor wasn't an option and the checkbox was always gray).
So now when I check the box on one student's record, indicating they are a mentor, it checks it on every student's record...or vice versa if I uncheck it. This is a problem.
I read the the archives and found an article about check boxes that stayed checked and it said to check the control source for the unbound item...control source is blnMentor.
What am I doing wrong here?
Any ideas would be great...and if they could be in simple minded human language I would greatly appreciate :)
SoNew
Aug 21 '08 #1
3 3792
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi. Your checkbox is unbound - that is the only explanation for the repeating of the same state down all rows. So although it appears that it is bound to an underlying field the evidence is that it is not. Please check whether or not you really have the correct field name in your control source property - it should appear in the drop down list for that property.

If your form is bound to a query and not the table itself, have you included that field in your query?

In any case, the only explanation that comes to mind for the behaviour is that the control is unbound. In a continuous form or a datasheet view there is really just one single instance of the set of controls, repeated for all rows shown on the screen. That is the main reason why an unbound control's value repeats down all rows on the screen, and ripple changes for all rows at once if you change its value.

-Stewart
Aug 21 '08 #2
SoNew
13 New Member
How do I know if it is bound to a query (I didn't create the original form) - I went to properties under the form and the record source field was blank (I had to put in the tblMentor to have a drop down list on the blnMentor button) - but originally it was blank.
Thoughts?
Aug 21 '08 #3
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi. An unbound form - one with no specified recordsource - is not normally used for table-level data entry/editing unless it is bound at run-time by code setting the recordsource to an SQL statement or a query of some kind. The disadvantage of this approach is that it is impossible to tell from an unbound form which code module is doing the run-time binding.

Excepting unbound forms used to filter bound forms within them, or switchboard type forms, unbound forms are a bit of a contradiction in terms. Can't do anything useful unless bound, really, so binding by VBA code called from an event on a form, say, is the norm here.

-Stewart
Aug 21 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
0
by: Zürcher See | last post by:
I have a checkbox as sample, I have to create n-checkbox like that one in a webform, so I have extended the CheckBox class and wrote a public clone method that use the protected MemberwiseClone...
5
by: DotNetJunkies User | last post by:
1. i want to populate checkboxlist using javascript only at client side ....how can i do this..by populate word i mean that checkboxes should be checked or unchecked on some condition basis.......
9
by: Craig Andrews | last post by:
Hello, How do I access HTML CheckBoxs in the codebehind section of an ASP.NET program? In the old Interdev days one would: For i = 1 to Request.Form("CheckBox").Count if...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
9
by: mike7510uk | last post by:
Hi, I am using a gridview with a templatefield containing a checkbox. I want to update the database with a 1 or 0 depending on if a checkbox is checked or unchecked (then use the 1 or 0 later on...
7
by: =?Utf-8?B?cnVzaGQ=?= | last post by:
Hi all, i have a question about checkbox. i made a form, with some textboxes, and buttons.. the idea is this.. i want to enter some information (like name, address..) and some hobbies ! i made...
4
by: Charlotte | last post by:
Hi, I have a problem with a ASP-script, can somewone help me ? here is what I've got: mypage.asp : .... code ... <%
14
by: sarabonn | last post by:
Hello everyone, In my windows form application iam having a login form with 2 textboxes for username and password and checkbox (to keep the user logged in). When the user...
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
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.