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.
19 44553
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
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.
NeoPa 32,557
Recognized Expert Moderator MVP
You're asking about a ComboBox with multiple columns within it?
It would be good, too. But, I prefer checkbox list, and also wonder if it can be set up with MSAccess 2003.
Thanks,
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?
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
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.
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,
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.
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
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.
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.
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!
@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.
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.
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,
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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...
|
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 ...
|
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
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |