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

Filter a form via a set of comboboxes on a seperate search form

LeighW
73 64KB
Hi all,

This one is way to complex for me to work out.
Presently I have a search form (frm_Search) which is accessible via the Switchboard. I want to be able to search for records within frm_Argument.

I've created a many-to-many relationship between tbl_Argument and fields; fld_Structure, fld_System, fld_Component, fld_Substance which are based on their respected tables. I adjust how the fields and arguments from frm_Argument are linked via a junction table/form.

I want to be able to search using the fields above on frm_Search using comboboxes to filter frm_Argument to the records which are joint to each particular field.

The problem is that the fields can only be shown within a sub-form on frm_Argument because they are not within tbl_Argument (unless I can create a bound lookup somehow?). It means that it will be difficult to filter the form from a seperate form unless you can link to the subform?

Once that has been worked out I'd also like to be able to select the 4 fields (based on seperate comboboxes) on frm_Search to filter the records down as much as possible rather than just using one combobox. Also on frm_Search I'd want to use a command button once the combobox items have been selected to open frm_Argument with the filtered results.

I have no idea where to start.

Thank you for any assistance and I'm sorry if this isn't obvious enough,

Leigh
Aug 15 '12 #1
3 2640
zmbd
5,501 Expert Mod 4TB
Leigh,
That's hard to see what you have going on in my mind's eye...

However, start with this:http://bytes.com/topic/access/insigh...filtering-form I think that you can do this without too much trouble; however, we may need to take a peek under the hood in a post or two :)

(you'll also want to take a look at the links at the bottom of that link as it will answer part two of your question)
-z
Aug 15 '12 #2
LeighW
73 64KB
I forgot about that link! I'll give it a good read tomorrow.

Cheers Z
Aug 15 '12 #3
LeighW
73 64KB
OK the examples by NeoPa will not work in my case as the search form is working seperately to the main form.

It is also gathering data from a subform to filter the main form which NeoPa's method doesn't address.

I followed Allen Browne's method for filtering the main form based on a field in a subform:

http://allenbrowne.com/ser-28.html

This works perfectly on the main form. I now want to move that method to the search form somehow rather than clogging up the main form with searches.

I've managed to recreate the same method on the search form by binding the search form to tbk_Argument (the same table the main form is bound to) and putting in a hidden copy of the subform. However I'm not sure how to open up the main form with the same filter?

When I open the main form using a command button, once the filter is set in the search form, it will open up all records with no filter or if I set the WHERE criteria to the ID field it will open up just one record not the entire filtered list.

I've seen that there are methods of opening reports using the same filter as the calling form I'm wondering if it's possible with other forms.

Feels like I'm close but still far...
Aug 16 '12 #4

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

Similar topics

7
by: jim Bob | last post by:
Hi, This is probably very simple to do so if anyone can point me to the right place for reading, it would be much appreciated. I just want to build a very basic search form where i can enter a...
6
by: cassey14 | last post by:
Hi i hope someone help me on this..Im doing a search form..In my search form I have 7 fields to search these are: caseID case Summary Resolution Summary Status Summary Escalated To Date...
6
by: KiwiGenie | last post by:
Hi..I am trying to make a search form. I am fairly new to access and could well be looking at it completely wrong. I have an unbound form with textboxes in the header for entering different search...
4
by: Twisted01 | last post by:
Hello, I am new here and I hope I have the correct forum to answer my question. I am creating a website for a friend and they need a "Search Form" so that visitors can search for items on the...
9
by: jmartmem | last post by:
Greetings, Perhaps someone can help me resolve what I hope is a simple dilemma... I have one ASP page (TEST_RoadmapData_Search.asp) which contains two list/menus within a form, which, upon...
2
by: chungiemo | last post by:
Hi Everybody, I am using Alan Brownes Example of a search form example and I keep getting an error of the following:- Enter Parameter Value Msg Box with the entered Value "Mar" and I re-enter...
2
by: woodey2002 | last post by:
Hi Guys and thanks for your time. I have a search form for my database that allows users to select multiple criteria from multi select list boxes. I successfully integrated a multi select...
6
by: woodey2002 | last post by:
Hi Everyone. Thanks for your time. I am trying to create a search form that will allow users to select criteria from multiple multi select boxes. So far i have managed to achieve a search option...
8
by: munkee | last post by:
Hi everyone, I am using the following code adapted from Allen Browne: 'Purpose: This module illustrates how to create a search form, _ where the user can enter as many or few...
4
by: Kelly Warden | last post by:
I have a search form with a sub data form. When i search for "john" for example I should get a bunch of records in my subform, however it is just showing the first one from the table. Here is the...
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
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
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?
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
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
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...

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.