A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filter on a report from



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2007, 08:37 PM posted to microsoft.public.access.reports
Kat
external usenet poster
 
Posts: 268
Default Filter on a report from

I have a from that you can select a field to filter a report by. These
fields are comboxes. Can I have one report to filter this by? What do I put
into the report under filters to filter it by? Do I put the combox name or
what it is filter by? I have one report that can be run for 5 diffrent
comboxes that I want to filter on. When you do the filter you only will need
to filter on one of the five.

  #2  
Old October 30th, 2007, 12:34 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Filter on a report from

Kat,
You don't really filter a report... you filter the query behind it.
Let's say you have a cboCity on your form, and you'd like to have it
filter for a certain City selected in the combo... or ALL cities if no entry
is made in the combo.

In the report query, use this criteria against your city field.
Like "*" & Forms!frmYourFormName!cboCity & "*"

If cboCity = "Boston", only Boston records will be delivered.
If cboCity is Null, All cities will be returned.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."

"Kat" wrote in message
...
I have a from that you can select a field to filter a report by. These
fields are comboxes. Can I have one report to filter this by? What do I
put
into the report under filters to filter it by? Do I put the combox name
or
what it is filter by? I have one report that can be run for 5 diffrent
comboxes that I want to filter on. When you do the filter you only will
need
to filter on one of the five.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.