Report selection forumula

amfroehlich

Board Regular
Joined
Jul 14, 2004
Messages
192
I have made a report but I want to add a selection forumla so that it only selects certain days instead of all items. How do i do that? Also, I have a form where you can enter the month range you want. How can i call the report from that form?

Thanks,

Aaron :oops:
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Let's say your form has 2 text boxes: StartDate and EndDate.
For illustration, call the form Selector. Do this:

1. Open the query upon which you have based the report, in Design view.
2. In the Criteria row of the date field that you want to filter, type this:
Between Forms![Selector]![StartDate] And Forms![Selector]![EndDate] (change form and control names to suit your setup).
3. Close and save the query.
4. Now, back to the form. In Design view, drag a new Command button onto the form. Make sure that the Control Wizard is (wand icon) is on. A dialog pops up after a few seconds. Follow the prompts, seelcting that you want to open a report in Preview Mode. Choose your report from the list, give the button a caption, exit the wizard and save the form.
5. Now, give it a go

Denis
 
Upvote 0

Forum statistics

Threads
1,221,780
Messages
6,161,888
Members
451,730
Latest member
BudgetGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top