Filter By date

stirlingmw

Board Regular
Joined
Feb 18, 2013
Messages
75
I have a database of individuals information. one of the sections is Holidays submitted. So each individual has a record of any past or planned holidays.i would like to product a report that displays either Christmas, Easter or Summer holidays dependant on what is selected in a combobox i have set up.The data i have is as follows:Description (contains set data of "Christmas", "Easter" and "Summer")Datefrom (Medium date)DateTo (Medium date)my problem is; if i produce a query and then report based on the description the report will include ALL returns past and present for that description. How do i restrict it to only forethcoming events dependant on the description selected.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Pull the DateFrom field onto the grid a second time.
In the Criteria put >=Date()
Unclick the Show checkbox, so the field merely gets used for criteria and doesn't display a second time.

Denis
 

stirlingmw

Board Regular
Joined
Feb 18, 2013
Messages
75
Fantastic thank you.I have a "Holidays" Frm which was created from "Holidays" Qry which includes the >=Date() criteria with the following cells:Reason (Value List)DateFromDateToSurnameAt the top of this form a have an Unbound Combobox with "Christmas";"Easter";"Summer" as a Value List (which is the same as "Reason")what i am trying to do is generate a Report based on the unbound combobox selection which filters the query based on the "Reason" selected
 

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,091
Members
414,501
Latest member
mdhaumyu

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
Top