|
|
Date Query to create a report
I am a flight instructor with a flightschool in California. I am trying to
set up a database for the school to help track when our instructors need to
recieve a new medical exam, flight review and annual proficency checks. All
of these checks need to be done in a certain number of Calander months. For
instance an instructor does their inital proficency check on May 1, 2009. He
is required to have his next flight check no later than May 31, 2010. Is
there a formula that I can use to request records a certain number of months
in the future as the acctual day of that month doesn't mater? I don't care
if I have to add an extra field that is calculated off the original date
field, but I have no idea how to do it. In the end, I want to create a
report that will tell me that an instructor's flight check needs to be done
this month or is overdue. Anyone have an idea?
|
|
0
|
|
|
|
Reply
|
Utf
|
3/10/2010 6:44:01 AM |
|
On Tue, 9 Mar 2010 22:44:01 -0800, CentralValleyPilot
<CentralValleyPilot@discussions.microsoft.com> wrote:
> Is
>there a formula that I can use to request records a certain number of months
>in the future as the acctual day of that month doesn't mater? I don't care
>if I have to add an extra field that is calculated off the original date
>field, but I have no idea how to do it.
You can use the DateSerial function for this. To get the first day of the
month twelve months after InitialDate you can use the DateSerial function. It
takes three arguments, a year, month, and day; but it's clever enough to take
the 17th month of this year and return the fifth month of next year. So you
could use an expression like
DateSerial(Year([initialdate]), Month([initialdate]) + 12, 1)
to return the first day of the month twelve months after the initial date
(e.g. for an Initialdate of #5/12/2009# this will return #5/1/2010#). To get
the LAST day of the month, add 13 and use the zeroth day:
DateSerial(Year([initialdate]), Month([initialdate]) + 13, 0)
>In the end, I want to create a
>report that will tell me that an instructor's flight check needs to be done
>this month or is overdue. Anyone have an idea?
Uze a Query comparing the date calculated as above to Date().
--
John W. Vinson [MVP]
|
|
0
|
|
|
|
Reply
|
John
|
3/10/2010 7:15:06 AM
|
|
|
1 Replies
176 Views
(page loaded in 0.027 seconds)
Similiar Articles: Query condition by date range - microsoft.public.access ...I'm trying to create a query to base a report from. I need it to return records within a date range that needs to be specified, as in specifying the ... create report based on variable date/time - microsoft.public ...Create a Query that Prompts for Date and Time - microsoft.public ..... for date and time ... report ... Create a Query that Prompts for Date and Time ... Create a Query that Prompts for Date and Time - microsoft.public ...Duplicate prompts in crosstab query and subsequent report ... Create a Query that Prompts for Date and Time - microsoft.public ... Duplicate prompts in crosstab query and ... Access query to get monthly and quarterly report - microsoft ...> >I'll get raw data from the access query, which i'll be using to create ... and i want the job retiring date falls ... Dynamic Report using Cross Tab query - microsoft.public.access ... Cross Tab with dynamic date column - microsoft.public.access ...How to reorder columns in a crosstab query - microsoft.public ... How do I make the query sort the columns in date order? ... to how to create a report with dynamic column ... How to create report from Pivot Table View of Union Query ...Hi all, I have create a Union ALL Query. I want to generate a report from it. The Pivot Table View of this Union Query shows exactly what I want (hav... Query export automatically to Excel with today's date ...the more I look around for this answer, the more confused I get. Here's what I want to do: 1.) Create a command button on my main form 2.) When this ... Query to show relevant training - microsoft.public.access ...Query to show relevant training - microsoft.public.access ... E.Q. - Create your report as if you didn't care about the date criteria. ... Report page break problem ... Combining Date queries - microsoft.public.access.queries ...Create a query to count by month, and include within it a subquery to count ... the patients with a criteria: Between StartDate and End >Date and this produces a report ... show criteria on a report used to generate the report - microsoft ...Let's assume the report criteria is in the query date field like: Between [StartDate] and [EndDate] In an unbound control in your report header, write: = "For sales ... Access - create a report from a date range in a queryI have managed to create a Report from a form that displays data per date In the query criteria for the date it references the form [Forms]![equipe_form ... How to Query a Record in a Report in Access | eHow.comTo query a record for an Access report, you need to create a query with parameters, and then a ... How to Pull an Access Report by Date Range. Pulling an Access report by date ... Creating Microsoft Access Monthly Summary Crosstab Query Reports ...That makes it difficult for a report (or subsequent query) to use as the date range changes. ... the number of months to the [StartDate] to create the new date ... How to Pull an Access Report by Date Range | eHow.comPulling an Access report by date range can be done by using a parameter query in the report. The parameter query can prompt the user for the needed date range. Once ... Creating Dynamic Reports with Query Tables in ExcelTo retrieve the most up-to-date data, the user can refresh the query table. ... reports in Excel, you can use Automation to create a query table or PivotTable report ... 7/28/2012 3:25:54 AM
|
|
|
|
|
|
|
|
|