PC Review


Reply
Thread Tools Rate Thread

Date conversion to period

 
 
=?Utf-8?B?RG11bmRheQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
I currently have a table (Periods) which holds the data Period,Financial
Year, Start Date and End Date. I also have a table (Payments Analysis) which
holds data invoice number, invoice date, value and paid date.

I want to use a query on the table (Payments Analysis) that will give me the
period number and financial year against any paid date.

Thanks in advance.

Derek
 
Reply With Quote
 
 
 
 
Beth F.
Guest
Posts: n/a
 
      26th Jan 2006
Derek,
Assuming your date ranges do not overlap in the periods table, try
this:

SELECT PaymentsAnalysis.PaidDate, periods.period, periods.financialYear
FROM periods, PaymentsAnalysis
WHERE PaymentsAnalysis.PaidDate BETWEEN periods.startdate AND
periods.enddate

Beth F.

 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
SELECT [Payments Analysis].[invoice number],
[Payments Analysis].[invoice date],
[Payments Analysis].[value],
[Payments Analysis].[paid date],
Periods.period,
Periods.[Financial Year]
FROM [Payments Analysis], Periods
WHERE ((([Payments Analysis].[paid date])
BETWEEN Periods.[start date]
AND Periods.[end date]));

--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Dmunday" wrote:

> I currently have a table (Periods) which holds the data Period,Financial
> Year, Start Date and End Date. I also have a table (Payments Analysis) which
> holds data invoice number, invoice date, value and paid date.
>
> I want to use a query on the table (Payments Analysis) that will give me the
> period number and financial year against any paid date.
>
> Thanks in advance.
>
> Derek

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Period to date =?Utf-8?B?c25hcHNob3Q=?= Microsoft Excel Misc 1 23rd Jul 2007 06:33 PM
Match name and Date Period for % =?Utf-8?B?YWdncmVnYXRlIHN1bSBvdmVyIHRoZSBwZXJpb2Rz Microsoft Excel Misc 2 13th Jun 2007 09:23 AM
How to return all the dates from a period (from a date to another date) JDW Microsoft Access 1 14th Feb 2007 12:19 PM
Duplicates, but not within same date period =?Utf-8?B?R2FiYnkgR2lybA==?= Microsoft Access Forms 8 19th Jul 2006 03:31 PM
Date Period: Format([Call date],"mmm yy") - Sort Date =?Utf-8?B?QWRhbQ==?= Microsoft Access 5 30th Mar 2005 05:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 AM.