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.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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