473,508 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checkboxes in Listbox Possible?

6 New Member
MS Access Checkboxes in Listbox Possible?
Would like to have display checkboxes in a listbox, so users can click what they want and then when click on Save button selected values of checkboxes will be stored in the MS Access table. Thanks.
Oct 20 '08 #1
19 44553
GazMathias
228 Recognized Expert New Member
No.

They always display as Yes/No in List Boxes, as far as I can tell.

Also, when you click an item in a list box, you are just collecting a value (or multiple values for multi selects) for later use.

With a bit of fancy formatting, I guess you could make a continuous form achieve what you want(in a subform, maybe).

Gaz
Oct 20 '08 #2
NeoPa
32,557 Recognized Expert Moderator MVP
CheckBoxes & ListBoxes are controls in their own right, but neither is a type of object that can contain other controls (as say, forms and reports are).

I'm afraid what you ask makes little sense, but the answer's no anyway.
Oct 27 '08 #3
knlknl
6 New Member
Thanks for the reply.

Please look at the following link, and do get back. I did try but it did not seem to have that control in MS Access.

http://office.microsoft.com/en-us/ac...1171033.aspx#3
Oct 28 '08 #4
NeoPa
32,557 Recognized Expert Moderator MVP
You're asking about a ComboBox with multiple columns within it?
Oct 28 '08 #5
knlknl
6 New Member
It would be good, too. But, I prefer checkbox list, and also wonder if it can be set up with MSAccess 2003.
Thanks,
Oct 28 '08 #6
knlknl
6 New Member
I prefer checkboxes with related contents (2 columns total) within a checkbox list (in a listbox), if possible.

If not, then combox with 2 columns (checkboxes and related lables) would do.
Thanks.

You're asking about a ComboBox with multiple columns within it?
Oct 28 '08 #7
NeoPa
32,557 Recognized Expert Moderator MVP
It would be good, too. But, I prefer checkbox list, and also wonder if it can be set up with MSAccess 2003.
Thanks,
Now you're losing me again. I don't recognise what you're talking about :S
Oct 28 '08 #8
knlknl
6 New Member
Please go to : http://office.microsoft.com/en-us/access/HA100311171033.aspx#3 , and scroll down to almost half of the page until you see "The check box list is a list box control set to support multiple values." You may see check boxes along with related labels in the screenshot. That's what I am trying to set up.

Thanks.
Oct 28 '08 #9
mshmyob
904 Recognized Expert Contributor
Cannot be done in AC2003. Checkbox listboxes as described are based on Multivalued fields which were introduced in AC2007. Besides nobody in their right mind would use multivalued fields in their design.

cheers,
Oct 28 '08 #10
NeoPa
32,557 Recognized Expert Moderator MVP
Please go to : http://office.microsoft.com/en-us/access/HA100311171033.aspx#3 , and scroll down to almost half of the page until you see "The check box list is a list box control set to support multiple values." You may see check boxes along with related labels in the screenshot. That's what I am trying to set up.

Thanks.
Aah. I see.

I'm afraid that I am no fan of Access 2007 so am mainly unfamiliar with the features there.

As Mshmyob says though, I guess it can't be done without Access 2007.
Oct 29 '08 #11
knlknl
6 New Member
Thanks. I just gave it a try to ensure if AC2003 can or cannot do.
This is a good object control that gives users to not use Ctrl+mouse-click when selecting items/records in the listbox. So, I can conclude that AC2003 can't but AC2007 can.

As the alternate, I use continuous form with checkboxes. I am able to multiple-select checkboxes, but labels of those checkboxes populates as the same one.
Can someone give a tip on how to list checkboxes with related labels?

For instance,
[x] United States
[x] United Kingdom
[x] France
[ ] Russia and
[ ] China in a continuous form.

Thanks
Oct 29 '08 #12
NeoPa
32,557 Recognized Expert Moderator MVP
Only bound items can be different in a continuous form (Why Values in Unbound Form Controls Don't Persist). Hence the CheckBoxes are fine (bound to the record source), but the labels are not.
Oct 29 '08 #13
NeoPa
32,557 Recognized Expert Moderator MVP
The only way I can think of to get around this is to include the label value (UK, USA, China etc) in the record source.

This means defining an UPDATABLE query (IIf() results no good I'm afraid) with matching label data in each record. This would then need to be shown on the form as a TextBox, but you would probably want to ensure the TextBox control is locked from editing.
Oct 29 '08 #14
cybersmoker
1 New Member
I know this thread is old but why not set the multi-select property of a list box to simple. It is selected and unselected by clicking the option desired.

It also provides the visual clue that it is "checked" by being high lighted.

Best yet, this option works for office as far back as 97 at least.

Hope this helps.
Nov 23 '09 #15
NeoPa
32,557 Recognized Expert Moderator MVP
Old threads are only really old when the subject matter is defunct. Otherwise, threads last posted to three years ago could still be getting views from anyone interested, so good for you posting if you have something you feel may help :)

Welcome to Bytes!
Nov 24 '09 #16
supergrover
1 New Member
@mshmyob
I must be out of my mind then.
I have a scenario right now where the checkbox would be wonderment.

I have a list of persons who are associated with an event. The person has a role for that event (or not).

I have a listbox of all the people possible, the user selects those who are associated with the event. If they care to assign a role, they can do so when that person is selected. [a "button" next to the role text field saves the assignment]
I select person A and person B. I forgot to assign the role to person A, so I click their name again... but that deselects person A. When I go to save the list, person A is no longer selected and isn't saved.

A check-listbox would be wonderful for my scenario because I could use the check to determine if the person has membership in this event, instead of the multiselect.
Apr 20 '10 #17
ADezii
8,834 Recognized Expert Expert
What you are requesting can easily be done with a Visual Basic List Box. You simply set the Style Property = 1, then every single Item in the List Box will have an associated Check Box next to it. Unfortunately, we're not using VB.
Apr 20 '10 #18
mshmyob
904 Recognized Expert Contributor
@supergrover
I never said that a checkbox in a listbox wouldn't be ideal. I said using the multivalue field functionality of Access2007 is not ideal. Anybody who uses multi valued fields whether in Access or Oracle, etc. obviously doesn't understand how to design a database using bridge tables (proper normalization).

By using proprietary multi valued fields your database structure is no longer portable and must be redesigned between DBMS.

cheers,
Apr 22 '10 #19
FatihArat
1 New Member
It is an old question but here is the solution;
Set theListStyle property to 1 - frmListStyleOption then set the MultiSelect property to 1 - fmMultiSelectMulti you will have a listbox with checkboxes. So you will need only one column for your options (Checkboxes will be appeared automaticly). but this is not for Access :S
Jul 13 '12 #20

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

Similar topics

5
12388
by: MS News | last post by:
Hello, how do I get an x-number of check boxes in a listbox is it possible what other contols that have a scrol bar can hold checkboxes inside them thanks
2
5832
by: George Durzi | last post by:
This is more of a design/philosophical question :) I have a page in which the user sets attributes for a project. There are 8 attributes, e.g. Project Type, Country, etc. The number of options...
4
6752
by: Lucas Tam | last post by:
Hi all, Does anyone have an example on how to populate a Listbox with Text, a ComboBox Control, and a Checkbox control? Basically I want my listbox to look like this: Some Text ...
1
2037
by: Fredrik Melin | last post by:
Any tips on how to create (or buy a thirdparty) dropdown that have items that have checkboxes where you check multiple items? - Fredrik
1
4808
by: Selesti | last post by:
I've created a form dialog box with several checkboxes to determine which offices to include in a sales report. However, I'm getting an "Object doesn't support this property or method" error from MS...
2
3179
by: padhuwork | last post by:
Hi All, Basically for ListBox and ListView controls, its possible to add checkboxes. Instead of a checkbox is it possible to add radio button? Generally, when a user clicks on a checkbox, usually...
1
1282
by: ruvi | last post by:
I have a listbox with style property set to 1-Checked. I populate the listbox with records in a recordset. Then I select some of the items in the listbox. Now what I want is- I want to be able...
2
2759
by: Rex the Strange | last post by:
Hi All, Can anyone help me out here, please? I would like to have a listbox where each line item has two checkboxes associated with it. I know that I can use the checklistbox component (which I...
8
6018
by: PeteOlcott | last post by:
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_change_structure.html I would like to completely understand how GUI controls such as this one are constructed. In the...
0
7223
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
7115
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
7321
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,...
1
7036
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
5624
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,...
0
3191
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
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 ...
0
414
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...

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.