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

Problem with filtering by using a lot of check boxes

hello,

I have some problem with search menu. first i will explain the structure of my search mennu and then the problems that appears...

For creating my search menu i have used tips from that site: http://allenbrowne.com/ser-62.html

So I have Criteria part in Form Header and Results in Detail.
Criteria are devided into parts by using Tabs. So I have Region Tab, Information type Tab, Product Tab and Competitor Tab. All are normally inserted and work ok besides Competitor. But this tab is composed of subform where are the Competitors to choos from check boxes.
Now the case is to filter by all those criteria... but when it comes to competitor i cannot cause competitors are not in the Record Source... I tried to add that but i receive the message like this: Syntax error in FROM clause.
(Competitor Table: IDCompetitor, Competitor1(Yes/No), Competitor2(Yes/No) etc. (22 competitors) ). I suspect that it is caused by the number of fields i am creating in this Record Source... but as i am begginner i dont know for sure.

Does anyone has idea how to use filtering option in my case?
Or maybe you know better way to create search menu, other than on the site i have cited?
thx for any clues.

greetings
Greg
Nov 16 '07 #1
3 1331
nico5038
3,080 Expert 2GB
I guess your "main" table has a Competitor field.
In a case like that I would have a tblCompetitor with a Yes/No field called "Selected".
By having the field set to true, you can JOIN your "main" table to the tblCompetitor and add for the Selected field "True" as the criteria.
This saves the construction of an elaborate WHERE for the competitors.

Getting the idea ?

Nic;o)
Nov 17 '07 #2
I guess your "main" table has a Competitor field.
In a case like that I would have a tblCompetitor with a Yes/No field called "Selected".
By having the field set to true, you can JOIN your "main" table to the tblCompetitor and add for the Selected field "True" as the criteria.
This saves the construction of an elaborate WHERE for the competitors.

Getting the idea ?

Nic;o)
thx for your response. but i dont get it how to implement in my case.
In mains table i dont have competitor field. Competitor table is connceted with news table in that way:

IDCompetitor ---1-----------------------------------------1------IDNews
Company1 Title
Company2 Source etc.
Comany3
...
Company21
(all yes/no fields)

I created also the query that give me the sum of competitors:

Competitors field : GE, Siemens
GE
Siemens
...

if you could explain me step by step how to enable now filtering that in search menu, i would be grateful.
Nov 19 '07 #3
nico5038
3,080 Expert 2GB
You should change your Competitor table by adding the IDNews as a Foreign Key (FK).
Best to use an autonumber as the Unique ID like CompetitorID and when your Competitors are linked to multiple News items, then use:
tblCompetitor with:
CompetitorID
CompetitorName
...etc..
tblCompetitorNews as the relation table with:
CompetitorID
NewsID
and finally ofcourse the tblNews with
NewsID
...

Best to checkout the normalization of tables as described in:
http://www.thescripts.com/forum/thread585228.html

Nic;o)
Nov 19 '07 #4

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

Similar topics

0
by: CSDunn | last post by:
Hello, I have a problem with field filtering between an Access 2000 Project form (the application is called CELDT), and the report that shows the results of the filter. Both the form and the...
1
by: Eskil | last post by:
Hi I have a form that supplies my query with information on two different variables. The form uses a lookup to display a list of 5 different customer types and 5 different types of...
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
1
by: DJG79 | last post by:
Hi all, I am using an open source menu that i found and it works great, except for one thing that when the web page is not scrolled to the very top the drop down links will not stay visible. Has...
3
by: Harry Haller | last post by:
Hello, I want to implement a generic list which will be used to display 7 columns in a GridView. One should be able to sort, filter and page each of the 7 columns. Ideally the filter should be...
2
by: useasdf4444 | last post by:
I have the following program: #include <stdio.h> #include <string.h> #include <stdlib.h> void main () { char command; char *com,*pos,*stack1,*stack2; int boxes,boxtable,i,j,k,st1,st2; ...
7
by: viperRider | last post by:
This question has probably been asked, I just can't find it - sorry if I am double posting. I have a form that displays cselect info from my homebrew database (ie Name, date brewed, date bottled,...
2
by: Kevin | last post by:
I want to use a set of check boxes to narrow down entries on a subform. I.e. a check box for black, red & green to describe the colors of a product. So a use clicks Black and only black products...
5
by: RHooper | last post by:
Hi, I'm new to Access, so I apologize if this question is trivial. I am trying to set-up a quick filter for users to define on a form bound to a table. I have a combo box called...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.