Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2009, 12:11 PM
Registered User
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access: # of records within a date range

Hi yall,

I am so new to access and I need big time help.

I want to run query that counts the number of each status (there are seven7) in each 30 day increments or date ranges (if this is the right context). I have four ranges...[LIST][*]Day 1 to 30 -1st 30 increment[*]31 to 60- 2nd 30 day increment[*]61 to 90 - 3rd 30 day increment[*]90+ from start date
...I have the count working fine, what I can't figure out is how to do the dates when each record will have a different start date?

Can someone please help me?
 
Old December 16th, 2009, 08:42 PM
Registered User
 
Join Date: Dec 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Post Setting Date Range Using Parameter Query

You can have your query ask you to input the parameters yourself everytime you run the query, otherwise known as a parameter query in which the user interactively specifies one or more criteria values as the query runs. It further extends the flexibility of your query.
1. Open query in design view
2. Enter the following data in the Criteria row underneath your start date field:
Code:
>=[Enter the start date for this range] And <=[Enter the end date for this range]
3. Save
4. Run Query
Hope this helps,
 
Old December 17th, 2009, 03:40 PM
Registered User
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh my gosh, thanks so much!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a date range between another date rang tayvonne Access 2 August 3rd, 2006 09:50 AM
Date Range Flipflop SQL Language 6 November 25th, 2005 08:36 AM
Need Help With Date Range rpainter Crystal Reports 0 June 20th, 2005 01:01 PM
Help with Date Range PacMed Access 1 February 1st, 2005 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.