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

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 1581
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 #2
Works...thanks big time for the help

Sparks

On Mon, 7 Mar 2005 08:01:10 +1300, "Jeff Smith" <No****@Not.This.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
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...
2
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...
3
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...
7
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....
8
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...
0
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...
4
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...
2
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...
11
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.