473,796 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

little filter problem in access 97

I have a table with data like this

id data data data lookup
1 ### ### ### 1
1 ### ### ### 12

I need to put this in 2 subforms
subfrm1 will have id=1 and lookup=1
subfrm2 will have id=1 and lookup=12

I tried a filter in each subform and I get
the same data in both subforms...I assume the
first record with this is
id data data data lookup
1 ### ### ### 1

someone said that filters in access97 had
to be enabled in the main form
something like
me.allowfilter
me.filteron = true

this did nothing with the filters.
maybe I am just looking at this wrong.

how can I get 2 sub forms to display different records by the lookup =1 or 12
with the id being 1 in both.
the main form is showing id 1 records from another the main table.
and the sub forms are linked to the main form with id

Nov 13 '05 #1
2 1610
Create 2 queries and in the lookup field enter 1 in the first query and 12
in the second query in the criteria section. The SQL should read
SELECT id, data, data, data, lookup
FROM YourTableName
WHERE lookup = 1;

Use these queries as the recordsources for your sub-forms.

Jeff
"sparks" <jo***@lost.net > wrote in message
news:9e******** *************** *********@4ax.c om...
I have a table with data like this

id data data data lookup
1 ### ### ### 1
1 ### ### ### 12

I need to put this in 2 subforms
subfrm1 will have id=1 and lookup=1
subfrm2 will have id=1 and lookup=12

I tried a filter in each subform and I get
the same data in both subforms...I assume the
first record with this is
id data data data lookup
1 ### ### ### 1

someone said that filters in access97 had
to be enabled in the main form
something like
me.allowfilter
me.filteron = true

this did nothing with the filters.
maybe I am just looking at this wrong.

how can I get 2 sub forms to display different records by the lookup =1 or 12 with the id being 1 in both.
the main form is showing id 1 records from another the main table.
and the sub forms are linked to the main form with id

Nov 13 '05 #2
Works...thanks big time for the help

Sparks

On Mon, 7 Mar 2005 08:01:10 +1300, "Jeff Smith" <No****@Not.Thi s.Address> wrote:
Create 2 queries and in the lookup field enter 1 in the first query and 12
in the second query in the criteria section. The SQL should read
SELECT id, data, data, data, lookup
FROM YourTableName
WHERE lookup = 1;

Use these queries as the recordsources for your sub-forms.

Jeff
"sparks" <jo***@lost.net > wrote in message
news:9e******* *************** **********@4ax. com...
I have a table with data like this

id data data data lookup
1 ### ### ### 1
1 ### ### ### 12

I need to put this in 2 subforms
subfrm1 will have id=1 and lookup=1
subfrm2 will have id=1 and lookup=12

I tried a filter in each subform and I get
the same data in both subforms...I assume the
first record with this is
id data data data lookup
1 ### ### ### 1

someone said that filters in access97 had
to be enabled in the main form
something like
me.allowfilter
me.filteron = true

this did nothing with the filters.
maybe I am just looking at this wrong.

how can I get 2 sub forms to display different records by the lookup =1 or

12
with the id being 1 in both.
the main form is showing id 1 records from another the main table.
and the sub forms are linked to the main form with id


Nov 13 '05 #3

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

Similar topics

1
7852
by: Robert Neville | last post by:
I would like to add filter functionality to my database whether through the Main form or the subform. This question may be rudimentary, yet I have not less experience with filtering data outside from queries. Let me just add that Allen Browne excellent article about this subject may not apply to this scenario on an elementary level. (Here's the link to the article; Filter a Form on a Field in a Subform -...
2
9812
by: Andante.in.Blue | last post by:
Hi everyone! I was wondering if there is a away to use Access 97's build in filter-by-form function but restrict its effect to just the subform. I have a parent form that shows the major divisions of the company, and a subform that is linked so that it displays all the jobs within the division in the parent form. I also want the ability to filter the subform, so the users can pick out a bunch of common jobs easily. I did this using a...
3
6616
by: Richard | last post by:
Hi, I have a form based on a table. When I filter the form I want to run a report based on the same table with the same filter as the form. No problem until I want to filter a combo box where the text value is on a different table. The me.filter is then a text instead of the id-number from the lookup table. This causes the report to prompt for the parameter. How do I get by this problem? Do I need to create a temporary table? I rather...
7
6289
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals. I can do this the first time the form loads.
8
6535
by: dick | last post by:
I am just trying to print/report the results of a "filter by selection" which is done by right-clicking a form, filling in values, and "applying the filter." I have searched the newsgroups, and there are many examples. BUT, they fail sometimes. The techique is to pass the form's Me.filter as the "where condition" in a Docmd.openreport statement in code behind a "print button" on the form.
0
2246
by: Malcolm Cook | last post by:
I've discovered: Using "File > Print Preview" in a form's datasheet view with a server Filter crashes access after previewing... ....that is, unless ServerFilterByForm has been turned off after applying the filter. See the steps to recreate bug below for details.
4
5140
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced Filter/Sort window: A window in which you can create a filter from scratch. You enter criteria expressions in the filter design grid to restrict the records in the open form or datasheet to a subset of records that meet the criteria.), you see the design...
2
4035
by: Lenin Torres | last post by:
Hi everybody I have an Union Query that works fine. I used this query as the RecordSource for a Form. That Form is used as a subform in another form. Everything works fine, except for the "Filter by form" feature. When the user tries to use Filter by form a messagebox is displayed: "There are too many controls in this form to perform a filter by form", after that,when the user exit the Filter by Form mode, Access crash, displaying a...
11
1708
by: iTISTIC | last post by:
Developing a new app and am trying to make this my first truly OOP/3-Tier app. I understand the principles of the presentation, business, and data layers. I do, however, have some questions on where certain functionality should be placed and how some things should be implemented. Let's use a simple example such as an application to manage customer records (customer_id, first_name, last_name). I'd have a Customer business object with ID,...
2
1198
by: troy_lee | last post by:
I am passing a value from a combo box on a report initiation form to a query which is the record source for the report. My question is how do I pass the combo box value with an operator. I want to pass this: <>59. The query will run if I use 59, but will not run with <>59. Ideally, I want to use the Like statement before the form's control reference in the query criteria field so I can also run a "*" for all records. I have tried...
0
9673
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
10449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
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...
0
6785
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
5440
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
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.