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

excluding records from a query

I am using a membership database and trying to exclude certain records
that have not paid dues for that particluar fund. I have a query that
will pull up all members that have renewed for the month and the funds
that they have paid. When I run a report, I only want to include those
that have paid for a particular fund. What do I put in the query to
exclude those that have not paid? I thought putting something like
"include if it is >1" or something similar would work.

Does anyone have some ideas?

Thanks,

Jacob

Nov 13 '05 #1
2 2575
ja***@utahbeef.org wrote:
I am using a membership database and trying to exclude certain records
that have not paid dues for that particluar fund. I have a query that
will pull up all members that have renewed for the month and the funds
that they have paid. When I run a report, I only want to include those
that have paid for a particular fund. What do I put in the query to
exclude those that have not paid? I thought putting something like
"include if it is >1" or something similar would work.

Does anyone have some ideas?

Thanks,

Jacob

I usually present the data to a user in a form. So my form may have a
recordsource like "Select * From Members". This will present a list of
all records from members. I may have a combo box at the top called
"Funds" with a list of all funds and an option for All Funds. In the
after update event I may have code like
'create the filter
If Me.ComboFunds <> "All Funds" Then
Me.Filter = "Funds = '" & Me.ComboFunds & "'"
Endif
'turn the filter on or off
Me.FilterOn = (Me.ComboFunds <> "All Funds")

Look at the Filter property in help if you want to execute filters on a
query.
Nov 13 '05 #2
Jacob,
I do have some ideas ... but your question is a little vague (to me)

I will try:
You have a query with members that have renewed (payed) for the month and also the funds ?
Now you want a report for the members that payed for a particular fund ?
If so, all you need is another criterion in your query.
In your query-design-grid, in the 'column' where it says "Fund" add the particular fund in the criterion line.
Or: Open the report based on your query but with a where-clause like:
DoCmd.OpenReport "ReportName", , , "Fund = 12"

--
Hope this helps
Arno R
<ja***@utahbeef.org> schreef in bericht news:11*********************@f14g2000cwb.googlegro ups.com...
I am using a membership database and trying to exclude certain records
that have not paid dues for that particluar fund. I have a query that
will pull up all members that have renewed for the month and the funds
that they have paid. When I run a report, I only want to include those
that have paid for a particular fund. What do I put in the query to
exclude those that have not paid? I thought putting something like
"include if it is >1" or something similar would work.

Does anyone have some ideas?

Thanks,

Jacob

Nov 13 '05 #3

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

Similar topics

8
by: duncan.lovett | last post by:
PHP 4 MySQL 4.0.20 DW MW 2004 7.01 This problem is giving me a bit of a headache, and I'm getting nowhere with it so thought I'd open it up to all, any help would be greatly appreciated. ...
8
by: ric | last post by:
Hi, Is there a way to exclude fields in a query other than just including the ones you want. If there are 20 fields and you want to see all but 3, it would be a lot easier to exclude the 3. ...
6
by: Matt K. | last post by:
Hi there, I have a form in an Access project that contains a subform which displays the results of a query of the style "select * from where = #a certain date#". In the main part of the form...
6
by: Judy | last post by:
Here's the problem; We need to return a query that shows the products that aren't associated with a specific PriceGroupID.(PriceGroupID is the specific group that will see these prices) We've...
6
by: Sven Pran | last post by:
Probably the answer is there just in front of me only awaiting me to discover it, but: 1: I want to build a query that returns all records in one table for which there is no successful "join"...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
2
by: henryopinion | last post by:
Please help. I've been ramming my head on my keyboard from trying to figure this problem out. In a query, I have two tables. One of the tables (table 1) has a unique identifier and other...
1
by: VMI | last post by:
I need to display Access data in a datagrid but the Access table has over 2 million records. Since I can't fill a datatable with all those records but the user needs to see all of them, how can I...
2
by: ManningFan | last post by:
Go into a table where you have a field that has NULL values. Right- Click on a record with a value in that field and choose "Filter Excluding Selection". Some (or most, or all) of your records...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.