Fiscal Date Period

G

Guest

I have a table of data that has a StartDate. I am trying to assign a Number
that represents the Fiscal Period the startDate Falls into.

I have another table that lists the FiscalStartDate, FiscalEndDate and
PeriodNumber:
09/26/2004 (FiscalStartDate)
10/23/2004 (FiscalEndDate)
1 (PeriodNumber)

In the first table a StartDate of 09/27/2004 falls between 09/26/2004 and
10/23/2004. Therefore the PeriodNumber is 1. I am trying to create a query
or expression to get the PeriodNumber assigned to each record on the first
table.

I am sure this is easy, but I am strugling with it at the moment. Any Ideas?
 
G

Guest

I think this is what you need:
select PeriodNumber from tblPeriodNumber
where inputdate between FiscalStartDate and FiscalEndDate
 

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

Similar Threads


Top