I have a report that needs to filter on a date field (or two) in order to choose active clients. There is a Start Date and an End Date and they are separated by 6 months. So if the start date is Jan 15 the end date is July 15. So if I am printing the report for January, the client is active and if I am printing for August, they are not. I cannot, for the life of me, wrap my head around the math so that I get the correct output.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Date ranges (2000(sr3))
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Date ranges (2000(sr3))
- This topic has 6 replies, 2 voices, and was last updated 17 years, 1 month ago.
AuthorTopicWSPeterN
AskWoody LoungerApril 14, 2008 at 4:42 pm #450202Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody Lounger -
WSPeterN
AskWoody LoungerApril 14, 2008 at 10:51 pm #1105611Currently they are both in the table. End is calculated in an afterupdate event from Start and again from Length if they change it from the default 6 months. I suppose there is no good reason to store end in the table now that you mention it and it certainly isn’t too late to change it if there’s a strong reason to do so.
-
WSHansV
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSPeterN
AskWoody LoungerApril 15, 2008 at 12:22 am #1105637The user will ultimately enter it via a form for choosing reports to print and there will be a reference to that field in the query. Currently I am using a prompt as I haven’t decided on form design yet. Feel free to give me a formula for either. I can adapt it from there.
I take your point in your other post. Recording the end date seemed like a good idea at the time… -
WSHansV
AskWoody LoungerApril 15, 2008 at 12:31 am #1105639Enter your parameter prompt in the Field row in an empty column in the query, e.g. [Enter Date]
Access will change it to something like Expr1: [Enter Date] but you don’t have to worry about that.
Clear the Show check box for the column.
Enter an expression like this in the Criteria line for this column:Between [Start Date] And DateAdd(“m”,[Length],[Start Date])
where Start Date is the name of the start date field and Length is the name of the duration field, assumed to be expressed in months.
If you use a form, replace the parameter [Enter Date] with a reference to the start date text box, e.g. [Forms]![frmParam]![txtStartDate]
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 hour, 18 minutes ago -
No HP software folders
by
fpefpe
2 hours, 2 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
3 minutes ago -
Stay connected anywhere
by
Peter Deegan
7 hours, 25 minutes ago -
Copilot, under the table
by
Will Fastie
4 hours, 39 minutes ago -
The Windows experience
by
Will Fastie
13 hours, 39 minutes ago -
A tale of two operating systems
by
Susan Bradley
4 hours, 36 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
18 hours, 59 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 10 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
3 hours, 25 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 11 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 3 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 3 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 5 hours ago -
MS Passkey
by
pmruzicka
1 day, 7 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 12 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 23 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 11 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 7 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 16 hours ago -
AI slop
by
Susan Bradley
1 day, 10 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 17 hours ago -
Two blank icons
by
CR2
1 day, 1 hour ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 3 hours ago -
End of 10
by
Alex5723
4 days, 5 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 3 hours ago -
test post
by
gtd12345
4 days, 11 hours ago -
Privacy and the Real ID
by
Susan Bradley
4 days, 1 hour ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 3 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.