Don't worry...your "+1"s were showing up in my messages.
I added the SortYear field to my query. Now when I use
that field as the Group field, it lumps everything
together. Perhaps I should also explain that the date
field not a fixed date (it is the date a person is
hired). So for one report, the hire date may be
1/18/1993, while for another report the date may be
6/7/2002. What I am trying to do is to make individual
reports showing the training that our staff members have
received. We are given a monetary training allowance that
is good for two years, starting with the hire date. After
the two years, you start over with a new training
allowance. We want to be able to see how much an
individual has used for each of his/her two-year
training "blocks", and how much is available in the
current "block" . I used my hire date (1/18/1993) as the
example, and it groups all my training over the years
under one group: "1994". I didn't put anything in the
criteria row of the query because I didn't know how to
change it to fit a non-fixed date. Now what?
-----Original Message-----
Grrr! I've just realised that each time I try to read my own message it
converts back to Unicode 7. Heaven knows where I've set that up. Well, in
case you can't see it there should be a
plus and a one after each (Year([BookDate])
Evi
Evi said:
I've just realised what is happening. My message was
formatted as Unicode
7
which simply takes out the plus sign. And it only takes it out after I've
posted it! Wow! I'll have to watch out for that one.
Right here I am again with Western European encoding:
(Year([BookDate])+1)-((Year([BookDate])+1) Mod 2)
Evi
Darn late nights! that's twice I thought I'd pasted
in the correct
answer
and my clipboard has ignored me and pasted in the old
one. It should
read
SortYear
Year([BookDate]))-((Year([BookDate])) Mod 2)
After Year([BookDate] it should say 1 both times.
Evi
Darn. Just change that first query to
SortYear: (Year([BookDate]))-((Year([BookDate])) Mod 2)
What a great bedtime puzzle!
In a blank column, in the Field row, in Design view, in the query on
which
your report is based, put this:
SortYear
Year([BookDate]))-((Year([BookDate])) Mod 2)
(use the real name of your date field instead of YourDate).
In the criteria row of your query, under the date field have
= DateSerial(1995,1,1) to filter for dates after and on the 1st of
1995.
In your report make SortYear your Group field.
Evi
I want to make a report which groups on two year intervals
minus one day, starting with a specific date. For
example, every two years starting with 1/1/1995, which
would be 1/1/1995 -12/31/1996, 1/1/1997 - 12/31/1998,
etc. Is this possible? I am a novice at Access and don't
know any coding, etc.
Thanks!
.