Dear Jeff Boyce,
Thanks for your reply, however it did not fixed my problem.
Adding data to another table isn't the problem, but get the right data is
difficult.
I want that this query only show the current bookyear.
Eg; if it is December 2006 I want the months April 2006 - March 2007. When
it is January 2007 I want the months April 2007 - March 2007.
I know that there is a function DateSerial, but I cannot figure it out. An
example:
Between DateSerial(Year(Date()) -1 + (Month(Date())<=3),4,1) and
DateSerial(Year(Date()) +1 + (Month(Date())<=3),4,0)
Do you have any solution?
Kind regards, Stefan van der Hooft.
Jeff Boyce said:
First, reconsider adding records to another table. One of the advantages
of
using a relational database (i.e., Access) is that you rarely need to
store
duplicate data.
It sounds to me like you could create a query that returns all the
records
in a time period from your table named [T_OE_Occurences]. You'd do that
using the "Between ... And ..." criterion.
Once you have a query that returns the records you're seeking, just
create a
new query based on that first one, for whatever other processing you were
looking to do.
Regards
Jeff Boyce
Microsoft Office/Access MVP
"Stefan van der Hooft" <
[email protected]>
wrote
in message news:
[email protected]...
Hi!
I've a question about selecting records from a table into another
table.
I've 2 tables, T_OE_Occurences and T_OE_Occurences_Queried.
What I want is a query that copies current budget year into the table
T_OE_Occurences_Queried. Our bookyear is from April till March.
Can someone help me?
Kind regards, Stefan van der Hooft.