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

unbound checkbox in datasheet subforms - select one it selects all (do not want!)

AccessIdiot
493 256MB
Title says it all - I have a form with a subform. Subform has one unbound checkbox whose sole purpose is to launch another form when checked. I have this subform in datasheet view (for ease of data entry). When I check one checkbox it checks them all. How do I prevent this? I don't have the same problem with a different checkbox that is bound to a field in the table.
Sep 21 '10 #1
2 6011
Stewart Ross
2,545 Expert Mod 2GB
There is only one instance of the control concerned on a subform, repeated many times for the rows displayed. When unbound, that single instance changes simultaneously on all rows. You simply cannot use an unbound control the way you are hoping to.

Short answer is to take that control off the subform's detail section and place it in the header or footer, or put something that isn't a checkbox in its place - like a small picture with an on-click event. Unfortunately, you can't do this in datasheet view - needs to be a continuous form view instead.

We have an article touching on this issue in our insights section:

Why values in unbound form controls don't persist

-Stewart
Sep 21 '10 #2
AccessIdiot
493 256MB
Thanks Stewart, I guess it's good to know that I wasn't stupidly missing something simple. Although it also would have been great if it were!

Cheers
Sep 21 '10 #3

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

Similar topics

0
by: Brian | last post by:
Hello - Ive got a READ ONLY Datagrid with records of people (2 columns, FirstName and LastName). I would like the first column to be a checkbox that allows the user to select a row and then...
3
by: astro | last post by:
this must be obvious and i'm missing it............... i want to have 4 checkboxes in a groupbox - box1 value = 1, box2 = 2, box3 = 4, box4 = 8 these ctrls are not bound...I want to assign...
1
by: keithb | last post by:
How can I relate data in the bound columns of a GridView control to an unbound checkbox in a template column in the same row? The checkboxes indicate which rows are to be deleted when an update...
1
by: John | last post by:
Hi I am trying to add an unbound tick box to a bound grid using Edit Columns option. Problem is that when I select CheckBoxField, the Add button gets disabled. What is the problem and how can I...
1
by: Martin | last post by:
Hi, I'm having a problem with a datagridview control when trying to read the value of an unbound checkbox cell. The code below works fine if I click on any text cell, bound or unbound, and...
4
by: sara | last post by:
Hi - I've looked at many posts, and cannot find the answer on this specific problem. I have several fields on a table, which I've defined as "Text", 3 characters, Format Yes/No (I picked up the...
7
by: avraamG13 | last post by:
Hello, I'm having a code that shows in a list checkbox and next the row name i have on my database I want to select a checkbox and when i press display to show me tha information of the specific...
1
by: Ywy ShemTox | last post by:
I start an application in PHP and SQL Server for a company car and I need some recommendations. The application tracked him to the maintenance of the cars. On one side are the car brands (Ford,...
10
by: CJ Jarvis | last post by:
Hello, I have been trying to resolve this problem for a while and can't seem to find a solution anywhere. I have a database with the following relationship setup: A) Contract table with field...
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
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
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...
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...

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.