473,403 Members | 2,183 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,403 software developers and data experts.

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 1540
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******@btinternet.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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
by: | last post by:
Hi With extended multi-select, is it possible to know the last selection made by the user? Thanks Regards
0
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...
2
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...
4
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...
12
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...
1
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...
0
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...
1
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. ...
3
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...
11
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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
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...

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.