dbTalk Databases Forums  

Creating a filtered report

comp.database.ms-access comp.database.ms-access


Discuss Creating a filtered report in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mmi
 
Posts: n/a

Default Creating a filtered report - 11-09-2003 , 03:53 PM






I have a database that I would like to be able to print only customers from
a specific zip code. I would like to create a form to do the search by
asking for the zip code. A combo box would work fine. Creating the form is
not the problem. #1...I am having problems filtering the combo box so it
does not show all 1300 records. I don't need duplicate zip codes in the
combobox. #2...I can't figure out how to create the button to print the
report with only the data selected in the combo box.

Any help would be greatly appreciated.
Thanks
Mike



Reply With Quote
  #2  
Old   
Mark Thomas
 
Posts: n/a

Default Re: Creating a filtered report - 11-13-2003 , 03:24 PM






"mmi" <mikehigh3 (AT) mchsi (DOT) com> wrote

Quote:
I have a database that I would like to be able to print only customers from
a specific zip code. I would like to create a form to do the search by
asking for the zip code. A combo box would work fine. Creating the form is
not the problem. #1...I am having problems filtering the combo box so it
does not show all 1300 records. I don't need duplicate zip codes in the
combobox. #2...I can't figure out how to create the button to print the
report with only the data selected in the combo box.

Any help would be greatly appreciated.
Thanks
Mike
If I am following you correctly ...

If you select a value in a combo box you can then use this value to
filter the data that goes to the report.

1. Make a query for the report
2. Set the filter criteria as: [forms]![yourform]![yourcombobox]
3. Make the report using this form as the data source
4. Make a command button to open the report


Reply With Quote
  #3  
Old   
mmi
 
Posts: n/a

Default Re: Creating a filtered report - 11-13-2003 , 06:33 PM



Thanks for the help!! You have put me on the right track.

Thanks again,
Mike
"Mark Thomas" <m.thomas57 (AT) ntlworld (DOT) com> wrote

Quote:
"mmi" <mikehigh3 (AT) mchsi (DOT) com> wrote

I have a database that I would like to be able to print only customers
from
a specific zip code. I would like to create a form to do the search by
asking for the zip code. A combo box would work fine. Creating the
form is
not the problem. #1...I am having problems filtering the combo box so
it
does not show all 1300 records. I don't need duplicate zip codes in the
combobox. #2...I can't figure out how to create the button to print the
report with only the data selected in the combo box.

Any help would be greatly appreciated.
Thanks
Mike

If I am following you correctly ...

If you select a value in a combo box you can then use this value to
filter the data that goes to the report.

1. Make a query for the report
2. Set the filter criteria as: [forms]![yourform]![yourcombobox]
3. Make the report using this form as the data source
4. Make a command button to open the report



Reply With Quote
  #4  
Old   
Mark Thomas
 
Posts: n/a

Default Re: Creating a filtered report - 11-14-2003 , 01:19 PM



"mmi" <mikehigh3 (AT) mchsi (DOT) com> wrote

Quote:
Thanks for the help!! You have put me on the right track.

Thanks again,

1. Make a query for the report
2. Set the filter criteria as: [forms]![yourform]![yourcombobox]
3. Make the report using this form as the data source
4. Make a command button to open the report
Let me know if it works.

I have, however, spotted an error in what I wrote above.
It should be:

3. Make the report using this query as the data source
and
2. Set the filter in the query as ... etc


Reply With Quote
  #5  
Old   
mmi
 
Posts: n/a

Default Re: Creating a filtered report - 11-14-2003 , 04:07 PM



I did get it working perfectly! Thanks!

Mike
"Mark Thomas" <mthomas (AT) beacon (DOT) surrey.sch.uk> wrote

Quote:
"mmi" <mikehigh3 (AT) mchsi (DOT) com> wrote

Thanks for the help!! You have put me on the right track.

Thanks again,

1. Make a query for the report
2. Set the filter criteria as: [forms]![yourform]![yourcombobox]
3. Make the report using this form as the data source
4. Make a command button to open the report

Let me know if it works.

I have, however, spotted an error in what I wrote above.
It should be:

3. Make the report using this query as the data source
and
2. Set the filter in the query as ... etc



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.