473,769 Members | 6,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multi selection

Hi i have a form that has a number of options"buttons " on it 13 in all,

that is the number of posible areas.
if the user selects are 1 the data for area 1 is returned and so on for

each area.
What i want to know is it possible to filter the areas on more than one

selection(which could be variable)
e.g if area 1 selected return area 1 data
if area 2 selected return area 2 data
if area 1 & 2 selected return area 1 & 2 data
if area 1 & 5 selected return area 1 & 5 data
if area 2 & 5 selected return area 2 & 5 data etc...
also i have the option of returning each area
Can anyone point me in the right dirction please
thanks
kevin

Nov 13 '05 #1
4 1556
kevcar40 wrote:
Hi i have a form that has a number of options"buttons " on it 13 in all,

that is the number of posible areas.
if the user selects are 1 the data for area 1 is returned and so on for

each area.
What i want to know is it possible to filter the areas on more than one

selection(which could be variable)
e.g if area 1 selected return area 1 data
if area 2 selected return area 2 data
if area 1 & 2 selected return area 1 & 2 data
if area 1 & 5 selected return area 1 & 5 data
if area 2 & 5 selected return area 2 & 5 data etc...
also i have the option of returning each area
Can anyone point me in the right dirction please
thanks
kevin


How about one checkbox for each area, and one command button that
examines the state of each of the checkboxes?

--
Smartin
Nov 13 '05 #2
You might consider using a multi-select listbox instead of checkboxes.

"kevcar40" <ke******@btint ernet.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi i have a form that has a number of options"buttons " on it 13 in all,

that is the number of posible areas.
if the user selects are 1 the data for area 1 is returned and so on for

each area.
What i want to know is it possible to filter the areas on more than one

selection(which could be variable)
e.g if area 1 selected return area 1 data
if area 2 selected return area 2 data
if area 1 & 2 selected return area 1 & 2 data
if area 1 & 5 selected return area 1 & 5 data
if area 2 & 5 selected return area 2 & 5 data etc...
also i have the option of returning each area
Can anyone point me in the right dirction please
thanks
kevin

Nov 13 '05 #3
there's code at www.mvps.org/access for using a multi-select listbox to
gather query criteria...

What are you going to do with this? Filter a form or report?

Nov 13 '05 #4
thanks all for replies
in answer to Smartin i currently have check boxes for each area
problem is it is not working correctly the code is
"WHERE All_Areas.Area= '" & Me.a1hold & " ' " & _
"OR All_Areas.Area= '" & Me.a2hold & " ' " & _
"OR All_Areas.Area= '" & Me.A3hold & " ' " & _
"OR All_Areas.Area= '" & Me.A4hold & " ' " & _

this will run correctly if there is only two areas this however when
more areas are added continually returns A1 and A2
List boxes i have never used then so i dont fully understand the
workings of then

the result could go to a form then printed as a report

thanks again all

kevin

Nov 13 '05 #5

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

Similar topics

1
1473
by: | last post by:
Hi With extended multi-select, is it possible to know the last selection made by the user? Thanks Regards
0
1229
by: Pete Davis | last post by:
Sorry to have to post this here, but none of the accessibility newsgroups seem to be active. I've got a custom control that I'm adding accessibility support to. The control is a grid control and it supports a variety of types of multiple selection. It can support column, row, table, or ad-hoc cell multiple selection. My question is, does anyone know how to handle multiple selection in terms of the GetSelected() method of an...
2
5040
by: Alpha | last post by:
How I can disable multi-selection on a datagrid? User now can select multi-rows on the grid by holding down control key. I don't see such property for the grid as for the list control. Is there a way to do this? Thanks, Alpha
4
8490
by: Noa | last post by:
Hi, Is there a way to use OpenFileDialog1 in order to multi-select folders? I saw in msdn site a sample of multi-file-selections. I need to select multiple folders and to apply an algorithm on them. Any suggestions? Thx in advance, Dan.
12
1875
by: dbuchanan | last post by:
I am designing a table to contain a field to stores a value that must indicate none, one, or many choices. The form will have a group box with checkboxes (multi-choice) You see the records in this table contain partially pre-configured records. The records serve as "master" data that will later be inserted into a data table. The master data is set up by an adminsitrator. The administrator indicates for each record the none, one or many...
1
2831
by: KotBegemot | last post by:
I have a ListView with multi select I have 2 events: SelectedIndexChanged and ItemSelectionChanged If user selects 200 items, these events will be called for 200 times How can I get only 1 event on this 200 multi selection ? Thanks!
0
1521
by: felix.karpel | last post by:
I have a ListView with multi select I have 2 events: SelectedIndexChanged and ItemSelectionChanged If user selects 200 items, these events will be called for 200 times How can I get only 1 event on this 200 multi selection ? Thanks!
1
4168
by: freetime | last post by:
Greetings, This is my first post so I will try to be brief and accurate. I have a report that uses 9 user selectable filters (Dates, Y/N's as Combo Boxes and 4 Multi-Select List Boxes. 2 of the Multi-Select Boxes acquire their data from other tables as Lookup's. All functions for the filters operate properly pulling the data needed. One of my options with the data is to send it to a Report that can be printed. The request...
3
3267
by: 6afraidbecause789 | last post by:
If able, can someone please help make a Where clause that strings together IDs in a multi-select listbox AND includes a date range. I wasn’t thinking when I used the code below that strings together the IDs of Clients from a multi-select listbox in an unbound text field, txtCriteria, on a form that is used to pick different reports. It appears that I now have so many clients that I’ve reached the 255 character limit in the txtCriteria...
11
5601
by: woodey2002 | last post by:
This problem is driving me crazy. Hello there, i am trying to create a search form for records in my access database. The search form will contain text boxes and a multi select list box. The user can enter their search criteria eg. surname, reg num, etc. in the text boxes. The multi select list box allows the user to select multiple counties which they have the option of including in the search. The user should be able to select or omit the...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
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 we have to send another system
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.