Idebtify Dates Within A Date Range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 
Let's say you have a table with a field [MyDate]. Create a query and add the
field along with the other fields you want. As the criteria for [MyDate],
enter "Between [Start Date] and [End Date]" (without the quotation marks).
The query (and the report that's based on it) will prompt the user for [Start
Date] and [End Date] and return all records where [MyDate] is between those
dates inclusive. If you want to prevent bad input (i.e. data that isn't an
actual date), use the function IsDate() in an IIF() statement.
 
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?

kingston via AccessMonster.com said:
Let's say you have a table with a field [MyDate]. Create a query and add the
field along with the other fields you want. As the criteria for [MyDate],
enter "Between [Start Date] and [End Date]" (without the quotation marks).
The query (and the report that's based on it) will prompt the user for [Start
Date] and [End Date] and return all records where [MyDate] is between those
dates inclusive. If you want to prevent bad input (i.e. data that isn't an
actual date), use the function IsDate() in an IIF() statement.
I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?

Klatuu said:
Between [Enter StartDate] And [Enter EndDate]

jklingler said:
I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?

KARL DEWEY said:
Between [Enter start date] And [Enter end date]

jklingler said:
I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 
Let's say you filter the records with this query first. Then, create another
query (a totals query) where you group by the date and display the average of
the value you require. You can also use a DAvg() function but try a second
query first.
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?
Let's say you have a table with a field [MyDate]. Create a query and add the
field along with the other fields you want. As the criteria for [MyDate],
[quoted text clipped - 8 lines]
 
Create a Totals query.
Group by the date and Average whatever field you are trying to get an
average on.

jklingler said:
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?

Klatuu said:
Between [Enter StartDate] And [Enter EndDate]

jklingler said:
I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 
That worked great, Thank you for all your help.

kingston via AccessMonster.com said:
Let's say you filter the records with this query first. Then, create another
query (a totals query) where you group by the date and display the average of
the value you require. You can also use a DAvg() function but try a second
query first.
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?
Let's say you have a table with a field [MyDate]. Create a query and add the
field along with the other fields you want. As the criteria for [MyDate],
[quoted text clipped - 8 lines]
the prompted date range. How can I get the individual data for the dates in
the range?
 
That worked great, Thank you for all your help.

Klatuu said:
Create a Totals query.
Group by the date and Average whatever field you are trying to get an
average on.

jklingler said:
Between and And will give me tha date range but once I have the range I need
to show daily averages. I can't figure out how to get an average for the days
in the middle of the date range. Say I capture date range of 8-1-06 through
8-5-06. I write it to a temp table. Ho wo I get the chart on a report to show
the averages for each of the 5 days individually?

Klatuu said:
Between [Enter StartDate] And [Enter EndDate]

:

I am trying to create a Report based on a Query that prompts for a date
range. I need to display a chart of the daily averages of the dates with in
the prompted date range. How can I get the individual data for the dates in
the range?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top